CVE catalog

CVE-2026-8796

Sereal::Decoder versions before 5.005 for Perl allow heap out-of-bounds read via crafted input. In Perl/Decoder/srl_decoder.c, srl_read_object() and srl_read_hash() process a COPY tag, a back-referen

[CVE catalog]

Severity
High · CVSS 8.1
Published
Source
[NVD] · [CVE record]
EPSS
0.40% · Oct 27, 2026

Sereal::Decoder versions before 5.005 for Perl allow heap out-of-bounds read via crafted input. In 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).

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibsereal-decoder-perlsid5.011+ds-1fixed
Debianlibsereal-decoder-perlforky5.011+ds-1fixed
Debianlibsereal-decoder-perltrixie5.004+ds-1vulnerable
Debianlibsereal-decoder-perlbookworm5.003+ds-1vulnerable
Cpelibsereal-decoder-perlNot reportedNot reportedvulnerable
Ubuntulibsereal-decoder-perl16.043.005.001-1vulnerable
Ubuntulibsereal-decoder-perl16.043.006-1vulnerable
Ubuntulibsereal-decoder-perl16.043.008-1vulnerable
Ubuntulibsereal-decoder-perl16.043.014-1vulnerable
Ubuntulibsereal-decoder-perl16.043.014-1build1vulnerable
Ubuntulibsereal-decoder-perl18.043.015-1build1vulnerable
Ubuntulibsereal-decoder-perl18.044.004+ds-1vulnerable
Ubuntulibsereal-decoder-perl18.044.005+ds-1vulnerable
Ubuntulibsereal-decoder-perl20.044.007+ds-1vulnerable
Ubuntulibsereal-decoder-perl20.044.007+ds-1build1vulnerable
Ubuntulibsereal-decoder-perl20.044.011+ds-1vulnerable
Ubuntulibsereal-decoder-perl20.044.011+ds-1build1vulnerable
Ubuntulibsereal-decoder-perl22.044.018+ds-1build1vulnerable
Ubuntulibsereal-decoder-perl22.044.018+ds-1build2vulnerable
Ubuntulibsereal-decoder-perl22.044.023+ds-1vulnerable
Ubuntulibsereal-decoder-perl24.045.004+ds-1vulnerable
Ubuntulibsereal-decoder-perl24.045.004+ds-1build1vulnerable
Ubuntulibsereal-decoder-perl24.045.004+ds-1build2vulnerable
Ubuntulibsereal-decoder-perl24.045.004+ds-1build3vulnerable
Ubuntulibsereal-decoder-perl25.105.004+ds-1build4vulnerable
Ubuntulibsereal-decoder-perl25.105.004+ds-1build5vulnerable
Ubuntulibsereal-decoder-perl26.045.004+ds-1build5vulnerable
Opensuseperl-Sereal-Decodertumbleweed5.6.0-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibsereal-decoder-perlsourcesid5.006+ds-1not yet assignedNot reported[1138633]
Debianlibsereal-decoder-perlsourceforky5.006+ds-1not yet assignedNot reported[1138633]
Debianlibsereal-decoder-perlsourcetrixie(unfixed)not yet assignedNot reported[1138633]
Debianlibsereal-decoder-perlsourcebookworm(unfixed)not yet assignedNot reported[1138633]
Opensuseperl-Sereal-Decoderrpmtumbleweed5.6.0-1.1Not reportedOPENSUSE-SU-2026:10924-1Not reported

[Debian bug #1138633]

Notes

[trixie] libsereal-decoder-perl: Minor issue [bookworm] libsereal-decoder-perl: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 5.003+ds-1 · amd64 · bookworm

      Affected

      nvd · libsereal-decoder-perl · debian · bookworm; nvd · libsereal-decoder-perl · debian · 12

    • 5.003+ds-1 · arm64 · bookworm

      Affected

      nvd · libsereal-decoder-perl · debian · bookworm; nvd · libsereal-decoder-perl · debian · 12

[Debian 13 (Trixie)]

  • Source package: [libsereal-decoder-perl]

    Details (2)
    • 5.004+ds-1+b3 · amd64 · trixie

      Affected

      nvd · libsereal-decoder-perl · debian · 13

    • 5.004+ds-1+b3 · arm64 · trixie

      Affected

      nvd · libsereal-decoder-perl · debian · 13

[openSUSE Tumbleweed]

Observed:

References