CVE-2024-14031: Buffer overwrite in Sereal::Encoder via embedded vulnerable Zstandard library
- Vendor
- Yves
CVE-2024-14031 affects Sereal::Encoder for Perl versions 4.000 through 4.009_002. The issue is not a native flaw in Sereal::Encoder logic itself, but arises because the package embeds a vulnerable version of the Zstandard (zstd) library affected by CVE-2019-11922. The underlying zstd flaw is a race condition in one-pass compression functions in versions prior to 1.3.8. Under conditions where an output buffer smaller than the recommended size is used, the vulnerable compression path can perform an out-of-bounds write, resulting in a buffer overwrite condition within processes using the affected embedded library.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can cause out-of-bounds memory writes during compression operations, which may lead to process instability, crashes, memory corruption, and potentially more severe consequences depending on runtime conditions and exploitability in the host application. The supplied CVSS vector indicates potential high impact to confidentiality, integrity, and availability, although exploitation complexity is high.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, reduce exposure by avoiding use of affected Sereal::Encoder versions in untrusted or attacker-influenced compression workflows, especially paths invoking one-pass compression with potentially undersized output buffers. Review deployments for embedded vulnerable zstd code, constrain access to services that process attacker-controlled serialized/compressed data, and monitor for crashes or anomalous behavior in applications using Sereal::Encoder compression features. These are compensating measures only; upgrading is the definitive fix.
Remediation
Patch, then assume compromise.
Upgrade Sereal::Encoder to version 4.010 or later. This release is referenced as the fixed version and addresses the issue by no longer shipping the vulnerable embedded zstd state present in versions 4.000 through 4.009_002. Where applicable, ensure the bundled or linked Zstandard component is at least version 1.3.8 or later.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2024-14031 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2024-14031 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-14031?
- As of Sep 25, 2026, Mallory has found no public exploit for CVE-2024-14031.
- Is there a patch for CVE-2024-14031?
- Upgrade Sereal::Encoder to version 4.010 or later. This release is referenced as the fixed version and addresses the issue by no longer shipping the vulnerable embedded zstd state present in versions 4.000 through 4.009_002.
- What products are affected by CVE-2024-14031?
- Yves Sereal::Encoder.
- How severe is CVE-2024-14031?
- CVE-2024-14031 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 0.64% (45th percentile) as of Sep 25, 2026.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.