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

EcosystemPackageFixed inAdvisory
AlmaLinux:8perl-YAML-LibYAML1:0.70-2.el8_10ALSA-2025:9329
AlmaLinux:9perl-YAML-LibYAML1:0.82-6.1.el9_6ALSA-2025:9330
Debian:12libyaml-libyaml-perl0.86+ds-1+deb12u1DEBIAN-CVE-2025-40908
Debian:13libyaml-libyaml-perl0.903.0+ds-1DEBIAN-CVE-2025-40908
Debian:14libyaml-libyaml-perl0.903.0+ds-1DEBIAN-CVE-2025-40908
Rocky Linux:8perl-YAML-LibYAML1:0.70-2.el8_10RLSA-2025:9329
Rocky Linux:9perl-YAML-LibYAML1:0.82-6.1.el9_6RLSA-2025:9330
Ubuntu:22.04:LTSlibyaml-libyaml-perl0.83+ds-1ubuntu0.22.04.1USN-7632-1
Ubuntu:22.04:LTSlibyaml-libyaml-perl0.83+ds-1ubuntu0.22.04.1UBUNTU-CVE-2025-40908
Ubuntu:24.04:LTSlibyaml-libyaml-perl0.89+ds-1ubuntu0.24.04.1UBUNTU-CVE-2025-40908
Ubuntu:24.04:LTSlibyaml-libyaml-perl0.89+ds-1ubuntu0.24.04.1USN-7632-1

Affected products (as reported)

VendorProductVersions
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

References