Vulnerability · Published Jun 1, 2025 · Assigned by CPANSec
CVE-2025-40908YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified
Critical 9.1
In plain English
A critical-severity security flaw in YAML::LibYAML from TINITA. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)0.5%top 59.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | perl-YAML-LibYAML | 1:0.70-2.el8_10 | ALSA-2025:9329 |
| AlmaLinux:9 | perl-YAML-LibYAML | 1:0.82-6.1.el9_6 | ALSA-2025:9330 |
| Debian:12 | libyaml-libyaml-perl | 0.86+ds-1+deb12u1 | DEBIAN-CVE-2025-40908 |
| Debian:13 | libyaml-libyaml-perl | 0.903.0+ds-1 | DEBIAN-CVE-2025-40908 |
| Debian:14 | libyaml-libyaml-perl | 0.903.0+ds-1 | DEBIAN-CVE-2025-40908 |
| Rocky Linux:8 | perl-YAML-LibYAML | 1:0.70-2.el8_10 | RLSA-2025:9329 |
| Rocky Linux:9 | perl-YAML-LibYAML | 1:0.82-6.1.el9_6 | RLSA-2025:9330 |
| Ubuntu:22.04:LTS | libyaml-libyaml-perl | 0.83+ds-1ubuntu0.22.04.1 | USN-7632-1 |
| Ubuntu:22.04:LTS | libyaml-libyaml-perl | 0.83+ds-1ubuntu0.22.04.1 | UBUNTU-CVE-2025-40908 |
| Ubuntu:24.04:LTS | libyaml-libyaml-perl | 0.89+ds-1ubuntu0.24.04.1 | UBUNTU-CVE-2025-40908 |
| Ubuntu:24.04:LTS | libyaml-libyaml-perl | 0.89+ds-1ubuntu0.24.04.1 | USN-7632-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| TINITA | YAML::LibYAML | 0 – before 0.903.0 |
Weakness: CWE-552 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N