{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-40908 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2025-40908 is a critical path traversal vulnerability in TINITA YAML::LibYAML, published on 1 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-40908 and fix it if it is affected.\n\nWhat it is: CVE-2025-40908 is a critical path traversal vulnerability in TINITA YAML::LibYAML, published on 1 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-40908 in the wild and no public exploit code.\n\nAffected product: TINITA YAML::LibYAML. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-40908/ (Markdown: https://insights.sbomify.com/CVE-2025-40908/index.md)","id":"CVE-2025-40908","markdown":"https://insights.sbomify.com/CVE-2025-40908/index.md","name":"CVE-2025-40908","record":{"aliases":["ALSA-2025:9329","ALSA-2025:9330","AZL-62242","AZL-62279","DEBIAN-CVE-2025-40908","GHSA-jh9m-3m95-c6hp","MGASA-2025-0275","OESA-2025-1591","RHSA-2025:9329","RHSA-2025:9330","RHSA-2025:9338","RLSA-2025:9329","RLSA-2025:9330","ROOT-OS-DEBIAN-11-CVE-2025-40908","SUSE-RU-2025:03081-1","SUSE-SU-2025:01885-1","SUSE-SU-2025:01885-2","SUSE-SU-2025:01886-1","UBUNTU-CVE-2025-40908","USN-7632-1","openSUSE-SU-2025:15261-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Perl YAML library","requires_auth":"none","summary":"An attacker can modify existing files by exploiting unsafe file opening practices in the YAML-LibYAML Perl library.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CPANSec","cpe":[{"product":"yaml-libyaml","vendor":"ingydotnet"}],"cvss":{"score":9.1,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"}],"description":"YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::crb","Red Hat:enterprise_linux:9::crb","Red Hat:rhel_eus:9.4::crb","Rocky Linux:8","Rocky Linux:9","SUSE:Linux Enterprise Module for Development Tools 15 SP6","SUSE:Linux Enterprise Module for Development Tools 15 SP7","SUSE:Linux Enterprise Server 12 SP5-LTSS","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified","id":"CVE-2025-40908","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":21,"n_references":3,"next":{"headline":"Perl threads have a working directory race condition where file operations may target unintended paths","id":"CVE-2025-40909"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1:0.70-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/almalinux/perl-YAML-LibYAML","source":"ALSA-2025:9329"},{"ecosystem":"AlmaLinux:9","fixed":["1:0.82-6.1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/almalinux/perl-YAML-LibYAML","source":"ALSA-2025:9330"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["1:0.70-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/redhat/perl-YAML-LibYAML","source":"RHSA-2025:9329"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["1:0.70-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML-debuginfo","purl":"pkg:rpm/redhat/perl-YAML-LibYAML-debuginfo","source":"RHSA-2025:9329"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["1:0.70-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML-debugsource","purl":"pkg:rpm/redhat/perl-YAML-LibYAML-debugsource","source":"RHSA-2025:9329"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["1:0.82-6.1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/redhat/perl-YAML-LibYAML","source":"RHSA-2025:9330"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["1:0.82-6.1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML-debuginfo","purl":"pkg:rpm/redhat/perl-YAML-LibYAML-debuginfo","source":"RHSA-2025:9330"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["1:0.82-6.1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML-debugsource","purl":"pkg:rpm/redhat/perl-YAML-LibYAML-debugsource","source":"RHSA-2025:9330"},{"ecosystem":"Red Hat:rhel_eus:9.4::crb","fixed":["1:0.82-6.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/redhat/perl-YAML-LibYAML","source":"RHSA-2025:9338"},{"ecosystem":"Red Hat:rhel_eus:9.4::crb","fixed":["1:0.82-6.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML-debuginfo","purl":"pkg:rpm/redhat/perl-YAML-LibYAML-debuginfo","source":"RHSA-2025:9338"},{"ecosystem":"Red Hat:rhel_eus:9.4::crb","fixed":["1:0.82-6.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML-debugsource","purl":"pkg:rpm/redhat/perl-YAML-LibYAML-debugsource","source":"RHSA-2025:9338"},{"ecosystem":"Rocky Linux:8","fixed":["1:0.70-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/rocky-linux/perl-YAML-LibYAML?distro=rocky-linux-8\u0026epoch=1","source":"RLSA-2025:9329"},{"ecosystem":"Rocky Linux:9","fixed":["1:0.82-6.1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/rocky-linux/perl-YAML-LibYAML?distro=rocky-linux-9-6\u0026epoch=1","source":"RLSA-2025:9330"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP6","fixed":["0.890.0-150000.3.11.1"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/suse/perl-YAML-LibYAML\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP6","source":"SUSE-SU-2025:01886-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP6","fixed":["0.904.0-150000.3.16.1"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/suse/perl-YAML-LibYAML\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP6","source":"SUSE-RU-2025:03081-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP7","fixed":["0.904.0-150000.3.16.1"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/suse/perl-YAML-LibYAML\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP7","source":"SUSE-RU-2025:03081-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5-LTSS","fixed":["0.38-11.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/suse/perl-YAML-LibYAML\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSS","source":"SUSE-SU-2025:01885-2"},{"ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","fixed":["0.38-11.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/suse/perl-YAML-LibYAML\u0026distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5","source":"SUSE-SU-2025:01885-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["0.890.0-150000.3.11.1"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/opensuse/perl-YAML-LibYAML\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:01886-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["0.904.0-150000.3.16.1"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/opensuse/perl-YAML-LibYAML\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-RU-2025:03081-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.904.0-2.1"],"introduced":["0"],"last_affected":[],"package":"perl-YAML-LibYAML","purl":"pkg:rpm/opensuse/perl-YAML-LibYAML\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15261-1"}],"prev":{"headline":"FCGI versions 0.44 through 0.82, for Perl, include a vulnerable version of the FastCGI fcgi2 (aka fcgi) library","id":"CVE-2025-40907"},"products":["YAML::LibYAML"],"published":"2025-06-01","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-06-02","vendors":["TINITA"]},"summary":"An attacker can modify existing files by exploiting unsafe file opening practices in the YAML-LibYAML Perl library.","url":"https://insights.sbomify.com/CVE-2025-40908/"}