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

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-01T13:41:48.168Z
- Modified: 2026-06-17T09:22:16.177Z
- Weaknesses: CWE-552
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: CPANSec

## Description

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

(As written by CVE List.)

## Affected

- YAML-LibYAML: before 0.903.0
- ingydotnet yaml-libyaml: before 0.903.0

## References

- <https://github.com/ingydotnet/yaml-libyaml-pm/issues/120> (exploit, issue-tracking)
- <https://github.com/ingydotnet/yaml-libyaml-pm/pull/121> (issue-tracking, patch)
- <https://github.com/ingydotnet/yaml-libyaml-pm/pull/122> (issue-tracking, patch)

## Sources

- CVE List: [CVE-2025-40908](https://www.cve.org/CVERecord?id=CVE-2025-40908), CVE Terms of Use, modified 2025-06-02
- NVD: [CVE-2025-40908](https://nvd.nist.gov/vuln/detail/CVE-2025-40908), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-40908 · Whole record: https://cve.day/CVE-2025-40908.json · Rebuilt by cve.day 2026-11-25T22:58:58.627Z
