Skip to content
OpenAdvisories
Critical · 9.1 CVE-2025-40908 EUVD-2025-16577GHSA-jh9m-3m95-c6hp

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

Published Jun 1, 2025 · Updated Jun 2, 2025 · Assigned by CPANSec

Description

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

Affected products

VendorProductAffectedFixed
TINITA YAML::LibYAML < 0.903.0 0.903.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libyaml-libyaml-perl 0.903.0+ds-1 —
Debian 13 libyaml-libyaml-perl 0.903.0+ds-1 —
Debian 12 libyaml-libyaml-perl 0.86+ds-1+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS libyaml-libyaml-perl 0.89+ds-1ubuntu0.24.04.1 USN-7632-1
Ubuntu 22.04 LTS libyaml-libyaml-perl 0.83+ds-1ubuntu0.22.04.1 USN-7632-1
Ubuntu 20.04 LTS libyaml-libyaml-perl No fix yet —
Ubuntu 18.04 LTS libyaml-libyaml-perl No fix yet —
Ubuntu 16.04 LTS libyaml-libyaml-perl No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 perl-YAML-LibYAML 1:0.82-6.1.el9_6 RHSA-2025:9330
RHEL 8 perl-YAML-LibYAML 1:0.70-2.el8_10 RHSA-2025:9329
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.4 EUS perl-YAML-LibYAML 1:0.82-6.el9_4.1 RHSA-2025:9338

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 perl-YAML-LibYAML 1:0.82-6.1.el9_6 ALSA-2025:9330
AlmaLinux 8 perl-YAML-LibYAML 1:0.70-2.el8_10 ALSA-2025:9329

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 perl-YAML-LibYAML 1:0.82-6.1.el9_6 RLSA-2025:9330
Rocky Linux 8 perl-YAML-LibYAML 1:0.70-2.el8_10 RLSA-2025:9329
ReleasePackageFixed inAdvisory
SLES 15 SP7 perl-YAML-LibYAML 0.904.0-150000.3.16.1 SUSE-RU-2025:03081-1
SLES 15 SP6 perl-YAML-LibYAML 0.890.0-150000.3.11.1 SUSE-SU-2025:01886-1, SUSE-RU-2025:03081-1
SLES 12 SP5 perl-YAML-LibYAML 0.38-11.3.1 SUSE-SU-2025:01885-2, SUSE-SU-2025:01885-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed perl-YAML-LibYAML 0.904.0-2.1 openSUSE-SU-2025:15261-1
openSUSE Leap 15.6 perl-YAML-LibYAML 0.890.0-150000.3.11.1 SUSE-SU-2025:01886-1, SUSE-RU-2025:03081-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 perl-YAML-LibYAML 1:0.82-4.amzn2023.0.3 ALAS2023-2025-1036

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 perl-YAML-LibYAML 0.902.0-2 —
Azure Linux 2 (CBL-Mariner) perl-YAML-LibYAML No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 perl-YAML-LibYAML 1:0.82-6.1.el9_6 ELSA-2025-9330
Oracle Linux 8 perl-YAML-LibYAML 1:0.70-2.el8_10 ELSA-2025-9329

Advisories 17

References