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.

Severity (CVSS 3.1)6.2Medium
Exploit odds (30 days)0.2%top 92.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:8perl-YAML-Syck1.30-7.el8_10ALSA-2026:67269
Alpine:v3.24perl-yaml-syck1.47-r0ALPINE-CVE-2026-13713
Debian:12libyaml-syck-perl1.34-2+deb12u3DEBIAN-CVE-2026-13713
Debian:13libyaml-syck-perl1.34-2+deb13u3DEBIAN-CVE-2026-13713
Debian:14libyaml-syck-perl1.47-1DEBIAN-CVE-2026-13713
Rocky Linux:8perl-YAML-Syck0:1.30-7.el8_10RLSA-2026:67269
Ubuntu:26.04:LTSlibyaml-syck-perlno fix listedUBUNTU-CVE-2026-13713
Ubuntu:26.10libyaml-syck-perlno fix listedUBUNTU-CVE-2026-13713

Affected products (as reported)

VendorProductVersions
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

References