Vulnerability · Published Jul 16, 2026 · Assigned by CPANSec
CVE-2026-13713YAML::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
Medium 6.2
In plain English
A medium-severity use-after-free in YAML::Syck from TODDR. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | perl-YAML-Syck | 1.30-7.el8_10 | ALSA-2026:67269 |
| Alpine:v3.24 | perl-yaml-syck | 1.47-r0 | ALPINE-CVE-2026-13713 |
| Debian:12 | libyaml-syck-perl | 1.34-2+deb12u3 | DEBIAN-CVE-2026-13713 |
| Debian:13 | libyaml-syck-perl | 1.34-2+deb13u3 | DEBIAN-CVE-2026-13713 |
| Debian:14 | libyaml-syck-perl | 1.47-1 | DEBIAN-CVE-2026-13713 |
| Rocky Linux:8 | perl-YAML-Syck | 0:1.30-7.el8_10 | RLSA-2026:67269 |
| Ubuntu:26.04:LTS | libyaml-syck-perl | no fix listed | UBUNTU-CVE-2026-13713 |
| Ubuntu:26.10 | libyaml-syck-perl | no fix listed | UBUNTU-CVE-2026-13713 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| TODDR | YAML::Syck | 0 – before 1.47 |
Weakness: CWE-416, CWE-415 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H