Out-of-bounds Read Affecting perl-YAML-Syck package, versions <0:1.27-3.amzn2.0.6


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.18% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-PERLYAMLSYCK-18523384
  • published5 Aug 2026
  • disclosed16 Jul 2026

Introduced: 16 Jul 2026

CVE-2026-57077  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 perl-YAML-Syck to version 0:1.27-3.amzn2.0.6 or higher.
This issue was patched in ALAS2-2026-3837.

NVD Description

Note: Versions mentioned in the description apply only to the upstream perl-YAML-Syck package and not the perl-YAML-Syck package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

YAML::Syck versions before 1.47 for Perl allow an out-of-bounds read via an unbounded newline scan in newline_len.

In the bundled libsyck newline_len and is_newline dereference the scan pointer, and the following byte for a "\r\n" pair, with no NUL-terminator or bounds check. During block-scalar lexing at a document boundary the scan runs one byte past the heap lexer buffer. This is an incomplete fix of CVE-2025-11683, on a lexer path the earlier fix did not cover.

Any caller that runs Load or LoadFile on an untrusted document with a block scalar at a document boundary reaches the over-read.

CVSS Base Scores

version 3.1