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

- Severity: Medium 6.2 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-07-16T21:35:31.477Z
- Modified: 2026-10-24T20:10:00.137Z
- Weaknesses: CWE-415, CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CPANSec

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

(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/1>

## Sources

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

---

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