{"id":"CVE-2026-8796","aliases":["CVE-2026-8796"],"related":[],"kind":"vulnerability","state":"published","title":"Sereal::Decoder versions before 5.005 for Perl allow heap out-of-bounds read via crafted input","summary":"Sereal::Decoder versions before 5.005 for Perl allow heap out-of-bounds read via crafted input.\n\nIn Perl/Decoder/srl_decoder.c, srl_read_object() and srl_read_hash() process a COPY tag, a back-reference whose target byte the decoder re-decodes as a fresh tag. When that target byte matches the SHORT_BINARY pattern (an inline string whose length is encoded in the low bits of the tag), the resulting read is not bounded to precede the COPY tag's own offset and can run past the end of the input buffer. An attacker controlled COPY offset can land inside a previously decoded value rather than on a tag boundary, planting a byte that the decoder reads as a SHORT_BINARY tag and consuming up to 31 following bytes from the heap as a class name (OBJECT path) or hash key (HASH path).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Sereal::Decoder versions before 5.005 for Perl allow heap out-of-bounds read via crafted input.\n\nIn Perl/Decoder/srl_decoder.c, srl_read_object() and srl_read_hash() process a COPY tag, a back-reference whose target byte the decoder re-decodes as a fresh tag. When that target byte matches the SHORT_BINARY pattern (an inline string whose length is encoded in the low bits of the tag), the resulting read is not bounded to precede the COPY tag's own offset and can run past the end of the input buffer. An attacker controlled COPY offset can land inside a previously decoded value rather than on a tag boundary, planting a byte that the decoder reads as a SHORT_BINARY tag and consuming up to 31 following bytes from the heap as a class name (OBJECT path) or hash key (HASH path).","source":"cvelist"},{"lang":"es","text":"Las versiones de Sereal::Decoder anteriores a la 5.005 para Perl permiten una lectura fuera de límites de la memoria dinámica a través de una entrada especialmente diseñada.\n\nEn Perl/Decoder/srl_decoder.c, srl_read_object() y srl_read_hash() procesan una etiqueta COPY, una retro-referencia cuyo byte objetivo el decodificador vuelve a decodificar como una nueva etiqueta. Cuando ese byte objetivo coincide con el patrón SHORT_BINARY (una cadena en línea cuya longitud está codificada en los bits bajos de la etiqueta), la lectura resultante no está limitada a preceder el propio desplazamiento de la etiqueta COPY y puede exceder el final del búfer de entrada. Un desplazamiento COPY controlado por el atacante puede caer dentro de un valor previamente decodificado en lugar de en un límite de etiqueta, plantando un byte que el decodificador lee como una etiqueta SHORT_BINARY y consumiendo hasta 31 bytes siguientes de la memoria dinámica como un nombre de clase (ruta OBJECT) o una clave hash (ruta HASH).","source":"nvd"}],"published":"2026-05-31T19:43:22.054Z","modified":"2026-07-22T07:10:00.107Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"5.005","status":"affected"}],"vendor":"YVES","product":"Sereal::Decoder","package":"Sereal-Decoder","repo":"https://github.com/Sereal/Sereal","source":"cvelist"}],"references":[{"url":"https://github.com/Sereal/Sereal/commit/303a2c69cdba80bf37a3ff43461e0aa78198a7a3.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/YVES/Sereal-Decoder-5.005/changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/06/01/1","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-01T18:42:19.702Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-8796","url":"https://www.cve.org/CVERecord?id=CVE-2026-8796","licence":"CVE Terms of Use","modified":"2026-06-01T18:42:31.783Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-8796","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8796","licence":"Public domain","modified":"2026-07-22T07:10:00.107Z"}],"updatedAt":"2026-11-25T22:59:23.398Z","epss":{"score":0.00399,"percentile":0.36251,"date":"2026-12-02T12:00:21.000Z"}}