Skip to main content

CVE-2026-32829 — Vulnerability in lz4_flex — CVE Details

HIGH

lz4_flex's decompression can leak information from uninitialized memory or reused output buffer

Published March 16, 2026Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.80%). Schedule for your next planned update.

Does your project use an affected lz4_flex version?

Paste your Cargo.lock to check it for CVE-2026-32829 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Cargo.lock

Summary

Summary

Decompressing invalid LZ4 data can leak data from uninitialized memory, or can leak content from previous decompression operations when reusing an output buffer.

Details

The LZ4 block format defines a "match copy operation" which duplicates previously written data or data from the user-supplied dict. The position of that data is defined by an offset. The data is copied within the output buffer from the offset to the current output position. However, lz4_flex did not properly detect invalid and out-of-bounds offset values properly, causing it to copy uninitialized data from the output buffer.

Only the block based API functions are affected: lz4_flex::block::{decompress_into, decompress_into_with_dict}

When safe-decode is disabled additionally these functions are affected lz4_flex::block::{decompress, decompress_with_dict, decompress_size_prepended, decompress_size_prepended_with_dict}

All frame APIs are not affected.

There are two affected use cases:

  • decompressing LZ4 data with the unsafe implementation (safe-decode feature flag disabled, which is enabled by default): can leak content of uninitialized memory as decompressed result
  • decompressing LZ4 data into a reused, user-supplied output buffer (affects the safe-decode feature as well): can leak the previous contents of the output buffer as decompressed result

Impact

Leakage of data from uninitialized memory or content from previous decompression operations, possibly revealing sensitive information and secrets.

Mitigation

lz4_flex 0.12.1 and 0.11.6 fixes this issue without requiring changes in user code.

If you cannot upgrade, you can mitigate this vulnerability by zeroing the output buffer before calling block::decompress_into or block::decompress_into_with_dict (only block based API is affected, frame API is not affected). Additionally the the safe-decode feature flag should be enabled.

Advisory Timeline

  • First published March 16, 2026 (255 days ago).
  • Last revised September 10, 2026 — 177 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update lz4_flex to 0.11.6 or later
cargo update -p lz4_flex --precise 0.11.6
Cargo
Update lz4_flex to 0.12.1 or later
cargo update -p lz4_flex --precise 0.12.1

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: crates.io (1).

PackageFixed In
lz4_flex crates.io · Affected: All versions0.11.6
lz4_flex crates.io · Affected: All versions0.12.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Frequently Asked Questions

What is CVE-2026-32829?
lz4_flex's decompression can leak information from uninitialized memory or reused output buffer. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.0/10).
How do I check if my project is affected by CVE-2026-32829?
CVE-2026-32829 affects lz4_flex. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-32829 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.0

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.80%
EPSS percentile: 53.5

This is an above-median EPSS score — 53.5% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-vvp9-7p8x-rfvv
RUSTSEC-2026-0041

Related CVEs

  • CVE-2026-83816
    HIGH

    CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE

  • CVE-2026-83817
    HIGH

    CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock