Skip to content

CVE-2026-13713 YAML::Syck versions before 1.47 for Perl allow a use-after-free and double-free via an anchor node freed while still on the parser value stack

MediumCVSS 6.2 EPSS 0.18%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

YAML::Syck versions before 1.47 for Perl allow a use-after-free and double-free via an anchor node freed while still on the parser value stack.

In the bundled libsyck, when an anchor name is redefined or removed, syck_hdlr_add_anchor and syck_hdlr_remove_anchor free the node stored under that name with syck_free_node. That node can still be live on the parser's value stack, so syck_hdlr_add_node reaches it again and frees it a second time. On a normal build the 48-byte node chunk is freed twice and the interpreter aborts. Anchors need no special flags, so this is reached on the default Load path, and a 7-byte document that redefines an anchor triggers it.

Any caller that runs Load or LoadFile on an untrusted document that redefines an anchor mid-parse crashes the interpreter, a denial of service.

Upgrade path

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

PackageAffectedFixed inStatus
azure linux perl-YAML(Azure Linux 3.0) 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
redhat/perl-YAML-Syck(Red Hat enterprise_linux 8 crb) < 1.30-7.el8_10 1.30-7.el8_10 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:enterprise_linux:8::crb) < 1.30-7.el8_10 1.30-7.el8_10
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
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