9.1critical
YAML::Syck versions before 1.47 for Perl allow an out-of-bounds read via a signed-char lookup-table index in syck_base64dec
- Severity
- 9.1critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.37% (higher than 33% 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 a signed-char lookup-table index in syck_base64dec. The base64 decoder in the bundled libsyck indexes the 256-entry static table b64_xtable with a signed char, so any !!binary byte >= 0x80 sign-extends to a negative index and reads before the table. The decoder receives the raw bytes of any !!binary node, a standard YAML type not gated by $LoadBlessed or $LoadCode, so it is reached on the default Load path. Any caller that runs Load or LoadFile on an untrusted document containing a !!binary scalar with a high-bit byte triggers the read, and the value read can surface in the decoded result.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| YAML-Syck | before 1.47 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
YAML::Syck versions before 1.47 for Perl allow an out-of-bounds read via a signed-char lookup-table index in syck_base64dec. The base64 decoder in the bundled libsyck indexes the 256-entry static table b64_xtable with a signed char, so any !!binary byte >= 0x80 sign-extends to a negative index and reads before the table. The decoder receives the raw bytes of any !!binary node, a standard YAML type not gated by $LoadBlessed or $LoadCode, so it is reached on the default Load path. Any caller that runs Load or LoadFile on an untrusted document containing a !!binary scalar with a high-bit byte triggers the read, and the value read can surface in the decoded result.
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 índice de tabla de búsqueda de carácter con signo en syck_base64dec. El decodificador base64 en la libsyck incluida indexa la tabla estática b64_xtable de 256 entradas con un carácter con signo, por lo que cualquier byte !!binary >= 0x80 extiende el signo a un índice negativo y lee antes de la tabla. El decodificador recibe los bytes sin procesar de cualquier nodo !!binary, un tipo YAML estándar no restringido por $LoadBlessed o $LoadCode, por lo que se alcanza en la ruta de carga predeterminada. Cualquier llamador que ejecute Load o LoadFile en un documento no confiable que contenga un escalar !!binary con un byte de bit alto activa la lectura, y el valor leído puede aparecer en el resultado decodificado.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-57075 changed 2026-07-17 | CVE Terms of Use |
| NVD | CVE-2026-57075 changed 2026-10-24 | Public domain |