cve.bz

CVE-2025-40908 ingydotnet yaml-libyaml

9.1 criticalExploit referenceEPSS 0.5%Fix available

Critical (9.1) in ingydotnet yaml-libyaml. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

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

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-06-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-552 Files or Directories Accessible to External Parties
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-40908 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-40908?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-40908?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-40908 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
TINITA YAML::LibYAMLbefore 0.903.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libyaml-libyaml-perl0.86+ds-1+deb12u1DEBIAN-CVE-2025-40908
Debian13, 14libyaml-libyaml-perl0.903.0+ds-1DEBIAN-CVE-2025-40908
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTSlibyaml-libyaml-perlno fix listedUBUNTU-CVE-2025-40908
Ubuntu22.04:LTSlibyaml-libyaml-perl0.83+ds-1ubuntu0.22.04.1UBUNTU-CVE-2025-40908 USN-7632-1
Ubuntu24.04:LTSlibyaml-libyaml-perl0.89+ds-1ubuntu0.24.04.1UBUNTU-CVE-2025-40908 USN-7632-1
Red Hatenterprise_linux:8::crbperl-YAML-LibYAML, perl-YAML-LibYAML-debuginfo, perl-YAML-LibYAML-debugsource1:0.70-2.el8_10RHSA-2025:9329
Red Hatenterprise_linux:9::crbperl-YAML-LibYAML, perl-YAML-LibYAML-debuginfo, perl-YAML-LibYAML-debugsource1:0.82-6.1.el9_6RHSA-2025:9330
Red Hatrhel_eus:9.4::crbperl-YAML-LibYAML, perl-YAML-LibYAML-debuginfo, perl-YAML-LibYAML-debugsource1:0.82-6.el9_4.1RHSA-2025:9338
SUSELinux Enterprise Module for Development Tools 15 SP6perl-YAML-LibYAML0.890.0-150000.3.11.1SUSE-SU-2025:01886-1
SUSELinux Enterprise Module for Development Tools 15 SP6, Linux Enterprise Module for Development Tools 15 SP7perl-YAML-LibYAML0.904.0-150000.3.16.1SUSE-RU-2025:03081-1
SUSELinux Enterprise Server 12 SP5-LTSSperl-YAML-LibYAML0.38-11.3.1SUSE-SU-2025:01885-2
SUSELinux Enterprise Server LTSS Extended Security 12 SP5perl-YAML-LibYAML0.38-11.3.1SUSE-SU-2025:01885-1
openSUSELeap 15.6perl-YAML-LibYAML0.890.0-150000.3.11.1SUSE-SU-2025:01886-1
openSUSELeap 15.6perl-YAML-LibYAML0.904.0-150000.3.16.1SUSE-RU-2025:03081-1
openSUSETumbleweedperl-YAML-LibYAML0.904.0-2.1openSUSE-SU-2025:15261-1
AlmaLinux8perl-YAML-LibYAML1:0.70-2.el8_10ALSA-2025:9329
AlmaLinux9perl-YAML-LibYAML1:0.82-6.1.el9_6ALSA-2025:9330
Rocky Linux8perl-YAML-LibYAML1:0.70-2.el8_10RLSA-2025:9329
Rocky Linux9perl-YAML-LibYAML1:0.82-6.1.el9_6RLSA-2025:9330
Azure Linux2perl-YAML-LibYAMLno fix listedAZL-62279
Azure Linux3perl-YAML-LibYAML0.902.0-2AZL-62242

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8perl-YAML-LibYAML-1:0.70-2.el8_10Fixed 2025-06-23RHSA-2025:9329
Red Hat Enterprise Linux 9perl-YAML-LibYAML-1:0.82-6.1.el9_6Fixed 2025-06-23RHSA-2025:9330
Red Hat Enterprise Linux 9.4 Extended Update Supportperl-YAML-LibYAML-1:0.82-6.el9_4.1Fixed 2025-06-23RHSA-2025:9338

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-40908.

Attack patterns (CAPEC)

  • CAPEC-150 Collect Data from Common Resource Locations Severity: Medium
  • CAPEC-639 Probe System Files Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON