lz4_flex: Decompression can leak information from uninitialized memory or reused output buffer
Description
lz4_flex is a pure Rust implementation of LZ4 compression/decompression. In versions 0.11.5 and below, and 0.12.0, decompressing invalid LZ4 data can leak sensitive information from uninitialized memory or from previous decompression operations. The library fails to properly validate offset values during LZ4 "match copy operations," allowing out-of-bounds reads from the output buffer. The block-based API functions (decompress_into, decompress_into_with_dict, and others when safe-decode is disabled) are affected, while all frame APIs are unaffected. The impact is potential exposure of sensitive data and secrets through crafted or malformed LZ4 input. This issue has been fixed in versions 0.11.6 and 0.12.1.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
lz4_flexcrates.io | < 0.11.6 | 0.11.6 |
lz4_flexcrates.io | >= 0.12.0, < 0.12.1 | 0.12.1 |
Affected products
15- osv-coords14 versionspkg:apk/chainguard/garage-1pkg:apk/chainguard/garage-2pkg:apk/chainguard/garage-2.2pkg:apk/chainguard/parseablepkg:apk/chainguard/py3.10-hf-xetpkg:apk/chainguard/py3.11-hf-xetpkg:apk/chainguard/py3.13-hf-xetpkg:apk/chainguard/qdrantpkg:apk/wolfi/parseablepkg:apk/wolfi/py3.10-hf-xetpkg:apk/wolfi/py3.11-hf-xetpkg:apk/wolfi/py3.13-hf-xetpkg:apk/wolfi/qdrantpkg:cargo/lz4_flex
< 1.3.1-r3+ 13 more
- (no CPE)range: < 1.3.1-r3
- (no CPE)range: < 2.2.0-r2
- (no CPE)range: < 2.2.0-r3
- (no CPE)range: < 2.6.1-r1
- (no CPE)range: < 1.4.2-r1
- (no CPE)range: < 1.4.2-r1
- (no CPE)range: < 1.4.2-r1
- (no CPE)range: < 1.17.0-r5
- (no CPE)range: < 2.6.1-r1
- (no CPE)range: < 1.4.2-r1
- (no CPE)range: < 1.4.2-r1
- (no CPE)range: < 1.4.2-r1
- (no CPE)range: < 1.17.0-r5
- (no CPE)range: < 0.11.6
- PSeitz/lz4_flexv5Range: < 0.11.6
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-vvp9-7p8x-rfvvghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-32829ghsaADVISORY
- github.com/PSeitz/lz4_flex/commit/055502ee5d297ecd6bf448ac91c055c7f6df9b6dghsax_refsource_MISCWEB
- github.com/PSeitz/lz4_flex/security/advisories/GHSA-vvp9-7p8x-rfvvghsax_refsource_CONFIRMWEB
- rustsec.org/advisories/RUSTSEC-2026-0041.htmlghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.