Vulnerability · Published Jul 16, 2026 · Assigned by CPANSec

CVE-2026-57076YAML::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

High 7.8

In plain English

A high-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 6% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.2%top 93.8% 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 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.24perl-yaml-syck1.47-r0ALPINE-CVE-2026-57076
Debian:12libyaml-syck-perl1.34-2+deb12u3DEBIAN-CVE-2026-57076
Debian:13libyaml-syck-perl1.34-2+deb13u3DEBIAN-CVE-2026-57076
Debian:14libyaml-syck-perl1.47-1DEBIAN-CVE-2026-57076
Ubuntu:26.04:LTSlibyaml-syck-perlno fix listedUBUNTU-CVE-2026-57076
Ubuntu:26.10libyaml-syck-perlno fix listedUBUNTU-CVE-2026-57076

Affected products (as reported)

VendorProductVersions
TODDR YAML::Syck 0 – before 1.47

Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References