CVE-2025-40908 Details
Description
YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified
A vulnerability exists in YAML-LibYAML for Perl, in versions prior to 0.903.0, where the 'LoadFile' function uses a two-argument open. This behavior allows existing files to be truncated and modified, potentially leading to data loss.
Users can update to YAML-LibYAML version 0.903.0 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ingydotnet/yaml-libyaml-pm/issues/120 | CPANSec | ExploitIssue Tracking |
| https://github.com/ingydotnet/yaml-libyaml-pm/pull/121 | CPANSec | Issue TrackingPatch |
| https://github.com/ingydotnet/yaml-libyaml-pm/pull/122 | CPANSec | Issue TrackingPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-552 | Files or Directories Accessible to External Parties | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| ingydotnet yaml-libyaml | < 0.903.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 2, 2025 | Initial Analysis | [email protected] |
| Jun 2, 2025 | CVE Modified | CISA-ADP |
| Jun 1, 2025 | New CVE Received | CPANSec |