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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PSeitz | lz4_flex | < 0.11.6, >= 0.12.0, < 0.12.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rust-lz4-flex | 0.13.0-1 | — |
| Debian 13 | rust-lz4-flex | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rust-lz4-flex | No fix yet | — |
| Ubuntu 26.04 LTS | rust-lz4-flex | No fix yet | — |
| Ubuntu 25.10 | rust-lz4-flex | No fix yet | — |
| Ubuntu 24.04 LTS | rust-lz4-flex | No fix yet | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | rust +11 | 1.93.0-1.amzn2.0.1 | ALAS2-2026-3225 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | parseable | 2.6.1-r1 | — |
| Wolfi rolling | py3.10-hf-xet +2 | 1.4.2-r1 | — |
| Wolfi rolling | qdrant | 1.17.0-r5 | — |
| Wolfi rolling | vector | 0.54.0-r3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | lz4_flex | < 0.11.6 | 0.11.6 | GHSA-vvp9-7p8x-rfvv |
| crates.io | lz4_flex | >= 0.12.0, < 0.12.1 | 0.12.1 | GHSA-vvp9-7p8x-rfvv |
| crates.io | lz4_flex | >= 0.0.0-0, < 0.11.6 · >= 0.12.0, < 0.12.1 | 0.11.6, 0.12.1 | RUSTSEC-2026-0041 |
Advisories 2
- WID-SEC-2026-1504 Logging Subsystem for Red Hat OpenShift: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · May 20, 2026
- ALAS2-2026-3225 Moderate: rust security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Apr 1, 2026