Perl Sereal Encoder and Decoder Packages Expose zstd Buffer Overwrite Risk
Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Mar 31, 2026

Security advisories disclosed CVE-2024-14031 and CVE-2024-14030 in the Perl packages Sereal::Encoder and Sereal::Decoder, affecting versions 4.000 through 4.009_002. Both modules embed a vulnerable version of the Zstandard (zstd) library and inherit CVE-2019-11922, a buffer overwrite flaw in one-pass compression functions present in zstd versions prior to 1.3.8.
The underlying issue is a race condition that can trigger out-of-bounds writes when an undersized output buffer is used, and the advisories classify the exposure as CWE-1395: dependency on a vulnerable third-party component. Maintainers advised users to upgrade both Perl modules to version 4.010 or later to remove the vulnerable bundled library.
Why it matters
Impact assessment
Perl environments using Sereal::Encoder or Sereal::Decoder versions 4.000 through 4.009_002 are exposed if those modules are present in application, automation, or backend data-serialization workflows. The immediate risk is memory corruption from an inherited zstd buffer overwrite flaw, which can cause crashes or undefined behavior and may create a path to more serious compromise depending on how the modules are used.
The scope is likely targeted rather than internet-wide because exploitation depends on specific application usage of the affected Perl modules and vulnerable bundled zstd code. The story does not report confirmed exploitation in the wild, but the issue affects both encoder and decoder package lines and should be treated as a software supply chain exposure in Perl estates.
Supporting facts
- Affected products: Sereal::Encoder and Sereal::Decoder for Perl.
- Affected versions: 4.000 through 4.009_002.
- Root cause: bundled vulnerable third-party dependency, zstd, classified as CWE-1395.
- Underlying inherited vulnerability: CVE-2019-11922 in Zstandard prior to 1.3.8.
- Potential impact: out-of-bounds write / buffer overwrite leading to process instability, crashes, or possible memory corruption.
- No explicit evidence of active exploitation was provided in the references.
- Likely affected users: organizations running Perl applications, services, or tooling that serialize or compress data with Sereal modules.


