CVEfocus › CVE database › CVE-2026-8796

CVE-2026-8796Sereal::Decoder versions before 5.005 for Perl allow heap out-of-bounds read via crafted…

CVSS 8.1 HighEPSS 0.5% (higher than 34% of CVEs)Published 2026-05-31Updated 2026-06-01Assigner: CPANSec

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).

CWE-125

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
5Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libsereal-decoder-perlUnder investigationUBUNTU-CVE-2026-8796
Ubuntu 25.10libsereal-decoder-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-8796
Ubuntu 24.04libsereal-decoder-perlUnder investigationUBUNTU-CVE-2026-8796
Ubuntu 22.04libsereal-decoder-perlUnder investigationUBUNTU-CVE-2026-8796
Ubuntu 20.04libsereal-decoder-perlFix pendingUBUNTU-CVE-2026-8796
Ubuntu 18.04libsereal-decoder-perlFix pendingUBUNTU-CVE-2026-8796
Ubuntu 16.04libsereal-decoder-perlFix pendingUBUNTU-CVE-2026-8796
Debian 14libsereal-decoder-perlFixed5.006+ds-1DEBIAN-CVE-2026-8796
Debian 13libsereal-decoder-perlFix pendingDEBIAN-CVE-2026-8796
Debian 12libsereal-decoder-perlFix pendingDEBIAN-CVE-2026-8796

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to Sereal::Decoder 5.005 or later.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.