Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisory

Perl Sereal Encoder and Decoder Packages Expose zstd Buffer Overwrite Risk

Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Mar 31, 2026

Perl Sereal Encoder and Decoder Packages Expose zstd Buffer Overwrite Risk

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.
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Feb 6, 2017
  1. Feb 6, 201710y ago

    CPAN advisory discloses CVE-2024-14031 in Sereal::Encoder

    A security advisory disclosed CVE-2024-14031 affecting Sereal::Encoder for Perl versions 4.000 through 4.009_002. The flaw was traced to an embedded vulnerable Zstandard library version affected by CVE-2019-11922, and users were advised to upgrade to version 4.010 or later.

  2. Feb 6, 201710y ago

    CPAN advisory discloses CVE-2024-14030 in Sereal::Decoder

    A CPAN Security Group advisory disclosed CVE-2024-14030 affecting Sereal::Decoder for Perl versions 4.000 through 4.009_002. The issue stems from an embedded vulnerable Zstandard library version affected by CVE-2019-11922, and users were advised to upgrade to version 4.010 or later.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.