CVE-2026-13713: Anchor Node Use-After-Free and Double-Free in Perl YAML::Syck
CVE-2026-13713 is a use-after-free and double-free vulnerability in the libsyck parser bundled with Perl YAML::Syck versions before 1.47. When an anchor is redefined or removed, syck_hdlr_add_anchor() and syck_hdlr_remove_anchor() free its associated SyckNode through syck_free_node(), although the node can remain referenced on the parser's value stack. Subsequent processing by syck_hdlr_add_node() can access and free the node again. A seven-byte YAML document that redefines an anchor can trigger the flaw through the default Load path without special flags, causing the Perl interpreter to abort and resulting in denial of service.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Processing a crafted YAML document through Load or LoadFile can terminate the Perl interpreter and interrupt the application or service running within that process. On a normal build, the parser double-frees a 48-byte node allocation and aborts. The established impact is denial of service; confidentiality loss, integrity compromise, and arbitrary code execution are not established for this specific vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Until a fixed package is deployed, prevent vulnerable YAML::Syck instances from processing untrusted YAML. Disable or restrict application functionality that passes attacker-controlled documents to Load or LoadFile. No special parser flag is required to expose the vulnerable anchor-handling path.
Remediation
Patch, then assume compromise.
Upgrade YAML::Syck to version 1.47 or later, or install the distribution's security-fixed package. Backported fixes include perl-YAML-Syck 1.30-7.el8_10 for Red Hat Enterprise Linux 8 and libyaml-syck-perl 1.34-2+deb13u3 for Debian trixie. The upstream fix defers freeing evicted anchor nodes until parser teardown using a parser-owned retired-node table and syck_retire_node(). When backporting, preserve the ordered, interdependent anchor-handling fixes for CVE-2026-13713 and CVE-2026-57076.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-13713 exploited in the wild?
- As of Oct 21, 2026, Mallory has no reports of CVE-2026-13713 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-13713?
- As of Oct 21, 2026, Mallory has found no public exploit for CVE-2026-13713.
- Is there a patch for CVE-2026-13713?
- Upgrade YAML::Syck to version 1.47 or later, or install the distribution's security-fixed package. Backported fixes include perl-YAML-Syck 1.30-7.el8_10 for Red Hat Enterprise Linux 8 and libyaml-syck-perl 1.34-2+deb13u3 for Debian trixie.
- How severe is CVE-2026-13713?
- CVE-2026-13713 has a CVSS v3.1 score of 6.2 (Medium) and an EPSS score of 0.18% (4th percentile) as of Oct 21, 2026.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.