Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify Perl service decoding Sereal input
-
DeliveryCraft Sereal blob with COPY offset into mid-value byte
-
ExploitSubmit payload to decoder endpoint
-
InstallTrigger SHORT_BINARY misparse in srl_read_object/srl_read_hash
-
C2Decoder reads up to 31 heap bytes past buffer
-
ExecuteApplication returns leaked bytes as class name or hash key
-
ImpactHarvest disclosed heap memory for secrets
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a Perl application that uses Sereal::Decoder (pre-5.005) to deserialize attacker-controlled bytes via decode_sereal or the OO Sereal::Decoder->decode interface; the attacker-supplied payload must contain a COPY tag whose varint offset lands on a byte inside a previously decoded value such that that byte matches the SHORT_BINARY tag pattern (high bits set per the Sereal spec, low 5 bits encoding length 1-31), and the COPY must be reached through srl_read_object()'s class-name path or srl_read_hash()'s key path - the two functions patched in commit 303a2c69. Limiting factors: the bug is a bounded out-of-bounds READ only (max 31 bytes per trigger, no write primitive shown in the patch), CVSS UI:R reflects that the victim application must actively call the decoder on attacker input rather than the attacker initiating decoding, leaked bytes are whatever happens to sit adjacent on the heap so the disclosure channel is opportunistic rather than targeted, and exploitation impact depends on whether the calling application surfaces decoded keys/class names back to the attacker (logs, error messages, response bodies) - silent decoders that discard output gain little observable value. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H scores 8.1 (High), reflecting that exploitation requires the victim to deserialize attacker-supplied Sereal data (UI:R) but otherwise needs no authentication and no special complexity. The C:H/A:H rating is somewhat aggressive given the bug is described purely as a bounded (≤31-byte) out-of-bounds read with no write primitive - confidentiality impact is realistic (heap memory leak) but the A:H availability rating likely reflects potential crashes from reading unmapped pages rather than a confirmed DoS primitive; defenders should treat this primarily as an information-disclosure issue. EPSS is 0.01% (0th percentile) and the CVE is not in CISA KEV, indicating no public exploit identified at time of analysis and no observed in-the-wild activity. The SSVC technical impact is partial (info leak), exploitation is not automatable in the sense of mass-scanning since it requires the target application to feed Sereal data to the decoder, and the user-interaction requirement materially limits drive-by exploitation. Real-world priority is moderate: patch promptly on systems that deserialize Sereal data from untrusted sources (queue messages, RPC payloads, cached blobs from untrusted producers), but it is not an emergency on systems that only decode internally produced Sereal data. |
| Exploit ScenarioDerived | An attacker submits a maliciously crafted Sereal-encoded payload to any Perl service that calls Sereal::Decoder::decode_sereal on attacker-controlled input - for example, a job queue worker consuming Sereal messages, an RPC endpoint, or a cache that accepts Sereal blobs from upstream clients. The payload contains a COPY tag whose offset points into the middle of an earlier value such that the target byte matches the SHORT_BINARY pattern with the maximum (31-byte) length, causing the decoder to read up to 31 bytes of adjacent heap memory and return them embedded as a class name or hash key - values that the application may then log, echo back, or otherwise expose, leaking heap contents that could include keys, tokens, or pointers useful for follow-on attacks. No public exploit identified at time of analysis, though the patch diff itself provides a clear blueprint and a regression test (t/903_regr_oob_copy_shortbinary.t) is shipped in 5.005. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 01, 2026
Heap out-of-bounds read in Sereal::Decoder for Perl before version 5.005 allows remote attackers to leak up to 31 bytes of adjacent heap memory when a victim application decodes attacker-controlled Sereal-encoded data. The flaw lives in COPY tag handling within srl_read_object() and srl_read_hash(), where a crafted COPY offset can redirect the decoder to mid-value bytes that are then re-interpreted as a SHORT_BINARY tag without bounds checking against the COPY tag's own offset. No public exploit identified at time of analysis, and EPSS is 0.01%, but a vendor patch is available in Sereal-Decoder 5.005.
RemediationAI
Vendor-released patch: upgrade Sereal::Decoder to 5.005 or later from CPAN (cpan Sereal::Decoder, cpanm Sereal::Decoder@5.005, or distro package once rebuilt); the fix is upstream commit 303a2c69cdba80bf37a3ff43461e0aa78198a7a3 which adds bounds checks against the COPY tag's own offset in srl_read_object(), srl_read_hash(), and srl_read_extend(). Refer to https://metacpan.org/release/YVES/Sereal-Decoder-5.005/changes and the oss-security announcement at http://www.openwall.com/lists/oss-security/2026/06/01/1. If immediate upgrade is impossible, compensating controls are: refuse to decode Sereal blobs originating from untrusted producers (validate provenance via signed/MACed envelopes before calling decode_sereal), isolate the decoder process under seccomp/AppArmor so a heap-leak primitive cannot reach secrets in the same address space, and consider deploying ASLR-strict and heap hardening (glibc MALLOC_PERTURB_, jemalloc opt.zero) to reduce the value of leaked bytes - these controls reduce risk but do not eliminate the OOB read and may have performance side effects.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Sereal is a binary serialization protocol (similar in spirit to MessagePack or Storable) widely used in the Perl ecosystem for fast inter-process and on-disk data exchange. Sereal::Decoder is the XS/C reference decoder distributed on CPAN by YVES (metacpan.org/release/YVES/Sereal-Decoder-5.005). The vulnerability is a CWE-125 Out-of-Bounds Read inside Perl/Decoder/srl_decoder.c: the COPY tag is a back-reference instructing the decoder to re-decode a tag byte at an earlier offset in the input buffer, but srl_read_object() and srl_read_hash() failed to validate that the COPY target lies on a legitimate tag boundary preceding the COPY tag itself. When the target byte happens to match the SHORT_BINARY tag pattern (a small inline string whose length lives in the low bits of the tag), the decoder reads up to 31 following bytes from the heap as if they were a class name (OBJECT path) or hash key (HASH path), enabling disclosure of adjacent heap contents. The upstream fix in commit 303a2c69 adds an explicit from + key_len > copytag_start check in both code paths plus a stricter target_start > copytag_start guard in srl_read_extend().
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
Primary rating from Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e).
CVSS VectorVendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
Lifecycle Timeline
3DescriptionCVE.org
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).
Executive ViewAI
Sereal-Decoder for Perl versions before 5.005 contain a heap memory leak vulnerability allowing remote attackers to extract up to 31 bytes of sensitive data from application memory by processing specially crafted input. No public exploit identified at time of analysis. Organizations using affected versions risk exposure of credentials, encryption keys, and other sensitive information resident in heap memory.
Apply vendor patch: upgrade Sereal-Decoder to version 5.005 or later.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Same weakness CWE-125 – Out-of-bounds Read
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: High| Product | Status |
|---|---|
| SUSE Package Hub 15 SP7 | Fixed |
| openSUSE Tumbleweed | Fixed |
| SUSE Package Hub 15 SP7 | Fixed |
EUVD-2026-33517
GHSA-xhpj-269v-vq2q
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB