Skip to content

CVE-2026-57076 YAML::Syck versions before 1.47 for Perl allow a heap use-after-free via an anchor name reused as an anchors-table key in syck_hdlr_add_anchor

HighCVSS 7.8 EPSS 0.17%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

YAML::Syck versions before 1.47 for Perl allow a heap use-after-free via an anchor name reused as an anchors-table key in syck_hdlr_add_anchor.

In the bundled libsyck an anchor name allocated by syck_strndup is stored both as node->anchor, freed when the node is freed, and as the key in the parser's anchors table. Freeing the node frees the shared key, and a later anchor redefinition makes st_delete compare against the freed key, so st_strcmp reads freed heap memory. Anchors are a standard YAML feature and need no special flags, so this is reached on the default Load path.

Any caller that runs Load or LoadFile on an untrusted document that redefines an anchor reaches the read of freed memory.

Upgrade path

11 packages: 5 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
azure linux perl-YAML(Azure Linux 3.0) All versions No fix listed No fix yet
redhat/perl-YAML-Syck(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
ubuntu/libyaml-syck-perl(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/libyaml-syck-perl(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/libyaml-syck-perl(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/libyaml-syck-perl(Ubuntu 26.10) All versions No fix listed No fix yet
alpine/perl-yaml-syck(Alpine v3.24) < 1.47-r0 1.47-r0 Fixed
debian/libyaml-syck-perl(Debian 12) < 1.34-2+deb12u3; = 1.34-2; = 1.34-2+deb12u1; = 1.34-2+deb12u2 1.34-2+deb12u3 Fixed
debian/libyaml-syck-perl(Debian 13) < 1.34-2+deb13u3; = 1.34-2; = 1.34-2+deb13u1; = 1.34-2+deb13u2 1.34-2+deb13u3 Fixed
debian/libyaml-syck-perl(Debian 14) < 1.47-1; = 1.34-2; = 1.34-3; = 1.34-4 +3 more 1.47-1 Fixed
TODDR YAML::Syck < 1.47 1.47 Fixed

Affected products

ProductAffected versionsFixed in
TODDR YAML::Syck < 1.47 1.47
redhat/perl-YAML-Syck(Red Hat:rhel_els:6) All versions No fix listed
redhat/perl-YAML-Syck(Red Hat:rhel_els:7) All versions No fix listed
redhat/perl-YAML-Syck(Red Hat:enterprise_linux:8) All versions No fix listed
debian/libyaml-syck-perl(Debian:12) < 1.34-2+deb12u3 1.34-2+deb12u3
debian/libyaml-syck-perl(Debian:12) = 1.34-2 No fix listed
debian/libyaml-syck-perl(Debian:12) = 1.34-2+deb12u1 No fix listed
debian/libyaml-syck-perl(Debian:12) = 1.34-2+deb12u2 No fix listed
debian/libyaml-syck-perl(Debian:13) < 1.34-2+deb13u3 1.34-2+deb13u3
debian/libyaml-syck-perl(Debian:13) = 1.34-2 No fix listed
debian/libyaml-syck-perl(Debian:13) = 1.34-2+deb13u1 No fix listed
debian/libyaml-syck-perl(Debian:13) = 1.34-2+deb13u2 No fix listed
debian/libyaml-syck-perl(Debian:14) < 1.47-1 1.47-1
debian/libyaml-syck-perl(Debian:14) = 1.34-2 No fix listed
debian/libyaml-syck-perl(Debian:14) = 1.34-3 No fix listed
debian/libyaml-syck-perl(Debian:14) = 1.34-4 No fix listed
debian/libyaml-syck-perl(Debian:14) = 1.36-1 No fix listed
debian/libyaml-syck-perl(Debian:14) = 1.36-2 No fix listed
debian/libyaml-syck-perl(Debian:14) = 1.36-3 No fix listed
ubuntu/libyaml-syck-perl(Ubuntu:22.04) All versions No fix listed
alpine/perl-yaml-syck(Alpine:v3.24) < 1.47-r0 1.47-r0
ubuntu/libyaml-syck-perl(Ubuntu:24.04) All versions No fix listed
ubuntu/libyaml-syck-perl(Ubuntu:26.04) All versions No fix listed
ubuntu/libyaml-syck-perl(Ubuntu:26.10) All versions No fix listed
azure linux perl-YAML(Azure Linux:3.0) All versions No fix listed

References