{"id":"UBUNTU-CVE-2025-40908","details":"YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified","modified":"2026-02-04T04:22:29.816186Z","published":"2025-06-01T14:15:00Z","related":["USN-7632-1"],"upstream":["CVE-2025-40908"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-40908"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-40908"},{"type":"REPORT","url":"https://lists.security.metacpan.org/cve-announce/msg/30071726/"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7632-1"}],"affected":[{"package":{"name":"libyaml-libyaml-perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libyaml-libyaml-perl@0.41-6build1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.41-6","0.41-6build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libyaml-libyaml-perl","binary_version":"0.41-6build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40908.json"}},{"package":{"name":"libyaml-libyaml-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libyaml-libyaml-perl@0.69+repack-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.63-2build1","0.69+repack-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libyaml-libyaml-perl","binary_version":"0.69+repack-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40908.json"}},{"package":{"name":"libyaml-libyaml-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libyaml-libyaml-perl@0.81+repack-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.80+repack-1","0.80+repack-1build1","0.80+repack-2","0.81+repack-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libyaml-libyaml-perl","binary_version":"0.81+repack-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40908.json"}},{"package":{"name":"libyaml-libyaml-perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libyaml-libyaml-perl@0.83+ds-1ubuntu0.22.04.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.83+ds-1ubuntu0.22.04.1"}]}],"versions":["0.82+repack-1build1","0.82+repack-1build2","0.83+ds-1","0.83+ds-1build1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libyaml-libyaml-perl","binary_version":"0.83+ds-1ubuntu0.22.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40908.json"}},{"package":{"name":"libyaml-libyaml-perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libyaml-libyaml-perl@0.89+ds-1ubuntu0.24.04.1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.89+ds-1ubuntu0.24.04.1"}]}],"versions":["0.86+ds-1","0.89+ds-1","0.89+ds-1build1","0.89+ds-1build2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libyaml-libyaml-perl","binary_version":"0.89+ds-1ubuntu0.24.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40908.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}