CVE-2026-8796Sereal::Decoder versions before 5.005 for Perl allow heap out-of-bounds read via crafted…
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).
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libsereal-decoder-perl | Under investigation | UBUNTU-CVE-2026-8796 | |
| Ubuntu 25.10 | libsereal-decoder-perl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-8796 | |
| Ubuntu 24.04 | libsereal-decoder-perl | Under investigation | UBUNTU-CVE-2026-8796 | |
| Ubuntu 22.04 | libsereal-decoder-perl | Under investigation | UBUNTU-CVE-2026-8796 | |
| Ubuntu 20.04 | libsereal-decoder-perl | Fix pending | UBUNTU-CVE-2026-8796 | |
| Ubuntu 18.04 | libsereal-decoder-perl | Fix pending | UBUNTU-CVE-2026-8796 | |
| Ubuntu 16.04 | libsereal-decoder-perl | Fix pending | UBUNTU-CVE-2026-8796 | |
| Debian 14 | libsereal-decoder-perl | Fixed | 5.006+ds-1 | DEBIAN-CVE-2026-8796 |
| Debian 13 | libsereal-decoder-perl | Fix pending | DEBIAN-CVE-2026-8796 | |
| Debian 12 | libsereal-decoder-perl | Fix pending | DEBIAN-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.
- YVES Sereal::Decoder: affected: before 5.005; fixed in
5.005
Solution: Upgrade to Sereal::Decoder 5.005 or later.
Vendor advisories:
- https://github.com/Sereal/Sereal/commit/303a2c69cdba80bf37a3ff43461e0aa78198a7a3.patch (patch)
- https://metacpan.org/release/YVES/Sereal-Decoder-5.005/changes (release-notes)
References
- https://github.com/Sereal/Sereal/commit/303a2c69cdba80bf37a3ff43461e0aa78198a7a3.patch
- https://metacpan.org/release/YVES/Sereal-Decoder-5.005/changes
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.