Back to overview

CVE-2026-57076

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.

Metadata

CVE ID
CVE-2026-57076
State
PUBLISHED
Assigner
CPANSec
Reserved
2026-06-23 18:02 UTC
Published
2026-07-16 21:40 UTC
Last updated
2026-07-17 03:02 UTC
Primary CWE
CWE-416
CWE-416 Use After Free
Vendor / Product
TODDR / YAML::Syck
Sources
cve.org  ·  NVD

Severity & Metrics

No CVSS data available.

Affected products (1)
VendorProductPlatformVersions
TODDR YAML::Syck 0 < 1.47
Weakness (CWE)
CWESourceDescription
CWE-416 cna CWE-416 Use After Free
Back to overview