CVE-2026-57077
JSON

7.7high

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

Severity
7.7high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
CPANSec

Description

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.

Affected

Product or packageVersionsReported by
YAML-Syckbefore 1.47CVE List

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Las versiones de YAML::Syck anteriores a la 1.47 para Perl permiten una lectura fuera de límites a través de un escaneo de nueva línea sin límites en newline_len. En la libsyck incluida, newline_len e is_newline desreferencian el puntero de escaneo, y el byte siguiente para un par “\r\n”, sin terminador NUL ni comprobación de límites. Durante el análisis léxico de escalar de bloque en un límite de documento, el escaneo se ejecuta un byte más allá del búfer del analizador léxico del heap. Esta es una corrección incompleta de CVE-2025-11683, en una ruta del analizador léxico que la corrección anterior no cubrió. Cualquier llamador que ejecute Load o LoadFile en un documento no confiable con un escalar de bloque en un límite de documento alcanza la sobrelectura.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-57077 changed 2026-07-17CVE Terms of Use
NVDCVE-2026-57077 changed 2026-10-24Public domain