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

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-07-16T21:40:59.686Z
- Modified: 2026-10-24T20:10:00.137Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- YAML-Syck: before 1.47

## References

- <https://metacpan.org/release/TODDR/YAML-Syck-1.47/changes> (release-notes)
- <https://github.com/toddr/YAML-Syck/commit/44c90a109ec3215ee7ce747bd11209835e123d8b.patch> (patch)
- <http://www.openwall.com/lists/oss-security/2026/07/17/3>

## Sources

- CVE List: [CVE-2026-57076](https://www.cve.org/CVERecord?id=CVE-2026-57076), CVE Terms of Use, modified 2026-07-17
- NVD: [CVE-2026-57076](https://nvd.nist.gov/vuln/detail/CVE-2026-57076), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-57076 · Whole record: https://cve.day/CVE-2026-57076.json · Rebuilt by cve.day 2026-11-25T22:59:28.444Z
