CVEfocus › CVE database › CVE-2025-40908

CVE-2025-40908YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be…

CVSS 9.1 CriticalEPSS 0.5% (higher than 41% of CVEs)Published 2025-06-01Updated 2025-06-02Assigner: CPANSec

YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified

CWE-552

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

11Fixed
3Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libyaml-libyaml-perlNot affected
vulnerable_code_not_present
Ubuntu 25.10libyaml-libyaml-perlNot affected
vulnerable_code_not_present
Ubuntu 24.04libyaml-libyaml-perlFixed0.89+ds-1ubuntu0.24.04.1UBUNTU-CVE-2025-40908
Ubuntu 22.04libyaml-libyaml-perlFixed0.83+ds-1ubuntu0.22.04.1UBUNTU-CVE-2025-40908
Ubuntu 20.04libyaml-libyaml-perlFix pendingUBUNTU-CVE-2025-40908
Ubuntu 18.04libyaml-libyaml-perlFix pendingUBUNTU-CVE-2025-40908
Ubuntu 16.04libyaml-libyaml-perlFix pendingUBUNTU-CVE-2025-40908
Debian 14libyaml-libyaml-perlFixed0.903.0+ds-1DEBIAN-CVE-2025-40908
Debian 13libyaml-libyaml-perlFixed0.903.0+ds-1DEBIAN-CVE-2025-40908
Debian 12libyaml-libyaml-perlFixed0.86+ds-1+deb12u1DEBIAN-CVE-2025-40908
Red Hat Enterprise Linux 9perl-YAML-LibYAMLFixed1:0.82-6.1.el9_6RHSA-2025:9330
Red Hat Enterprise Linux 8perl-YAML-LibYAMLFixed1:0.70-2.el8_10RHSA-2025:9329
AlmaLinux 9perl-YAML-LibYAMLFixed1:0.82-6.1.el9_6ALSA-2025:9330
AlmaLinux 8perl-YAML-LibYAMLFixed1:0.70-2.el8_10ALSA-2025:9329
Rocky Linux 9perl-YAML-LibYAMLFixed1:0.82-6.1.el9_6RLSA-2025:9330
Rocky Linux 8perl-YAML-LibYAMLFixed1:0.70-2.el8_10RLSA-2025:9329

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.