CVE-2026-57077: Out-of-bounds Read in YAML::Syck libsyck Block-Scalar Lexer
CVE-2026-57077 is a one-byte out-of-bounds read in the bundled libsyck lexer used by YAML::Syck for Perl before version 1.47. The newline_len() and is_newline() routines dereference the scan pointer without establishing that it remains within the lexer buffer, and also dereference the next byte when checking for a carriage-return/line-feed sequence. During block-scalar lexing at a YAML document boundary, this unbounded scan can read past the heap lexer buffer. The issue is an incomplete follow-on fix for CVE-2025-11683 affecting a lexer path not covered by the earlier remediation.
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.
An attacker able to supply crafted YAML to a vulnerable parser can cause an out-of-bounds heap read during parsing. This can result in process instability or denial of service and may expose adjacent memory-derived data, depending on allocator behavior and execution context.
Mitigation
If you can’t patch tonight, do this now.
Do not process untrusted YAML with YAML::Syck Load or LoadFile until a fixed release is deployed. Where parsing cannot be avoided, restrict input to trusted sources and reject or preprocess attacker-controlled documents containing block scalars.
Remediation
Patch, then assume compromise.
Upgrade YAML::Syck to version 1.47 or later. The fixed implementation passes an explicit buffer limit to newline_len() and is_newline() and validates the limit before every read; it also adds a lower-bound guard to the block-scalar backward chomp walk.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Frequently asked questions
- Is CVE-2026-57077 exploited in the wild?
- As of Sep 27, 2026, Mallory has no reports of CVE-2026-57077 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-57077?
- As of Sep 27, 2026, Mallory has found no public exploit for CVE-2026-57077.
- Is there a patch for CVE-2026-57077?
- Upgrade YAML::Syck to version 1.47 or later. The fixed implementation passes an explicit buffer limit to newline_len() and is_newline() and validates the limit before every read; it also adds a lower-bound guard to the block-scalar backward chomp walk.
- How severe is CVE-2026-57077?
- CVE-2026-57077 has a CVSS v3.1 score of 7.7 (High) and an EPSS score of 0.19% (5th percentile) as of Sep 27, 2026.
Recent activity
9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.