CVE-2025-40908: YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified
YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/libyaml-libyaml-perlto a version that resolves this vulnerability.Fixed in 0.83+ds-1ubuntu0.22.04.1 - Upgrade
Upgrade
ubuntu/libyaml-libyaml-perlto a version that resolves this vulnerability.Fixed in 0.89+ds-1ubuntu0.24.04.1 - Upgrade
Upgrade
debian/libyaml-libyaml-perlto a version that resolves this vulnerability.Fixed in 0.86+ds-1+deb12u1 - Upgrade
Upgrade
debian/libyaml-libyaml-perlto a version that resolves this vulnerability.Fixed in 0.903.0+ds-1 - Upgrade
Upgrade
debian/libyaml-libyaml-perlto a version that resolves this vulnerability.Fixed in 0.86+ds-1+deb12u1Fixed in 0.903.0+ds-1
Event History
Frequently Asked Questions
What is the severity of CVE-2025-40908?
CVE-2025-40908 is classified as a moderate severity vulnerability due to its potential for file modifications without permission.
How do I fix CVE-2025-40908?
To fix CVE-2025-40908, upgrade to YAML-LibYAML version 0.903.0 or later where the vulnerability is patched.
What versions are affected by CVE-2025-40908?
CVE-2025-40908 affects all versions of YAML-LibYAML prior to 0.903.0.
What is the impact of CVE-2025-40908?
The impact of CVE-2025-40908 allows potentially unauthorized modifications to existing files, jeopardizing data integrity.
Is there any workaround for CVE-2025-40908?
While the best solution is to upgrade, a temporary workaround is to restrict file permissions for vulnerable applications.