CVE-2026-32829: Lz4 flex Lz4_flex's Decompression Can Leak Information Vulnerability

HIGH
Advisory Identifier: GHSA-vvp9-7p8x-rfvv
CWE-823 CWE-201
Published
Advisory Summary

CVE-2026-32829 is a HIGH lz4_flex's decompression can leak information vulnerability (CWE-823: Use of Out-of-range Pointer Offset) affecting Lz4 flex libraries in the crates.io ecosystem. The issue involves lz4_flex's decompression can leak information from uninitialized memory or reused output buffer. Remediation is available by upgrading affected packages to version 0.11.6, 0.12.1.

CVE-2026-32829 at a Glance

CVE Identifier CVE-2026-32829
GHSA Identifier GHSA-vvp9-7p8x-rfvv
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-823: Use of Out-of-range Pointer Offset
Affected Product Lz4 flex
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix CVE-2026-32829

To remediate this vulnerability, upgrade all affected Lz4 flex dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

lz4_flex fixed: 0.11.6
Upgrade lz4_flex to 0.11.6
lz4_flex fixed: 0.12.1
Upgrade lz4_flex to 0.12.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for lz4_flex

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-32829, inspect your project dependencies for Lz4 flex:

inspect dependencies for lz4_flex

Analyze the terminal output to locate any version of Lz4 flex in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.11.6), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-823: Use of Out-of-range Pointer Offset, where the product performs pointer arithmetic on a valid pointer, but it uses an offset that can point outside of the intended range of valid memory locations for the resulting pointer. In Lz4 flex, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2026-32829 Affected Lz4 flex Versions

2 component(s)
Fixed Versions:
0.11.60.12.1
Product / Package Ecosystem Affected Versions Fixed Version
lz4_flex
crates.io
< 0.11.6
0.11.6
lz4_flex
crates.io
≥ 0.12.0
< 0.12.1
0.12.1

References

Frequently Asked Questions

What is CVE-2026-32829?
CVE-2026-32829 is a security vulnerability in Lz4 flex involving lz4_flex's decompression can leak information from uninitialized memory or reused output buffer under CWE-823: Use of Out-of-range Pointer Offset.
Which Lz4 flex versions are affected?
Affected versions include releases prior to 0.11.6, 0.12.1 across affected packages: lz4_flex.
What version fixes CVE-2026-32829?
Upgrading to 0.11.6, 0.12.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is lz4_flex affected?
Yes, lz4_flex is affected in releases prior to 0.11.6, 0.12.1. Upgrade your dependency to 0.11.6, 0.12.1 or later.
What CWE is associated with CVE-2026-32829?
CVE-2026-32829 is classified under CWE-823: Use of Out-of-range Pointer Offset (The product performs pointer arithmetic on a valid pointer, but it uses an offset that can point outside of the intended range of valid memory locations for the resulting pointer.).
How can I check crates.io dependencies for CVE-2026-32829?
Run the dependency tree command: 'inspect dependencies for lz4_flex'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vvp9-7p8x-rfvv",
  "modified" : "2026-03-20T21:18:54Z",
  "published" : "2026-03-16T20:48:08Z",
  "aliases" : [ "CVE-2026-32829" ],
  "summary" : "lz4_flex's decompression can leak information from uninitialized memory or reused output buffer",
  "details" : "### Summary\nDecompressing invalid LZ4 data can leak data from uninitialized memory, or can leak content from previous decompression operations when reusing an output buffer.\n\n### Details\nThe 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.\nHowever, lz4_flex did not properly detect invalid and out-of-bounds _offset_ values properly, causing it to copy uninitialized data from the output buffer.\n\nOnly the block based API functions are affected: \n`lz4_flex::block::{decompress_into, decompress_into_with_dict}`\n\nWhen safe-decode is disabled _additionally_ these functions are affected\n`lz4_flex::block::{decompress, decompress_with_dict, decompress_size_prepended, decompress_size_prepended_with_dict}`\n\nAll `frame` APIs are _not_ affected.\n\nThere are two affected use cases:\n- decompressing LZ4 data with the `unsafe` implementation (`safe-decode` feature flag disabled, which is enabled by default):\ncan leak content of uninitialized memory as decompressed result\n- decompressing LZ4 data into a reused, user-supplied `output` buffer (affects the `safe-decode` feature as well):\ncan leak the previous contents of the output buffer as decompressed result\n\n### Impact\nLeakage of data from uninitialized memory or content from previous decompression operations, possibly revealing sensitive information and secrets.\n\n### Mitigation\nlz4_flex 0.12.1 and 0.11.6 fixes this issue without requiring changes in user code.\n\nIf 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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "lz4_flex"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.11.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "lz4_flex"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.12.0"
      }, {
        "fixed" : "0.12.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/PSeitz/lz4_flex/security/advisories/GHSA-vvp9-7p8x-rfvv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-32829"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/PSeitz/lz4_flex/commit/055502ee5d297ecd6bf448ac91c055c7f6df9b6d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/PSeitz/lz4_flex"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2026-0041.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-201", "CWE-823" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-16T20:48:08Z",
    "nvd_published_at" : "2026-03-20T01:15:56Z"
  }
}