GHSA-vvp9-7p8x-rfvv — lz4_flex
Fix: PSeitz/lz4_flex@055502eGHSA-vvp9-7p8x-rfvv is a CWE-201 vulnerability in lz4_flex. A fix is available for lz4_flex — see the affected versions and patch details below.
lz4_flex's decompression can leak information from uninitialized memory or reused output buffer
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-vvp9-7p8x-rfvv.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Real-World Exposure
lz4_flex🦀lz4_flexReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.
Description
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
unsafeimplementation (safe-decodefeature flag disabled, which is enabled by default): can leak content of uninitialized memory as decompressed result - decompressing LZ4 data into a reused, user-supplied
outputbuffer (affects thesafe-decodefeature 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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🦀crates.io | lz4_flex | all versions | 0.11.6cargo update -p lz4_flex --precise 0.11.6 |
| 🦀crates.io | lz4_flex | ≥ 0.12.0&&< 0.12.1 | 0.12.1cargo update -p lz4_flex --precise 0.12.1 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for lz4_flex, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update lz4_flex to 0.11.6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-vvp9-7p8x-rfvv is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-vvp9-7p8x-rfvv can be triaged on real exposure rather than presence alone.
Tailored to GHSA-vvp9-7p8x-rfvv. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
In RHEL 9 and RHEL 10, this vulnerability presents minimal risk as the rust-analyzer component operates in a "closed loop," strictly decompressing its own internal database. Because it does not process external or untrusted data, exploitation requires an attacker to already possess local access and sufficient…
| Product | Fixed in | Advisory |
|---|---|---|
| Logging for Red Hat OpenShift 6.2 | openshift-logging/vector-rhel9:1776894389 | RHSA-2026:11800 |
| Logging Subsystem for Red Hat OpenShift 6.4 | openshift-logging/vector-rhel9:1780052069 | RHSA-2026:22862 |
| Logging Subsystem for Red Hat OpenShift 6.5 | openshift-logging/vector-rhel9:1777574710 | RHSA-2026:16354 |
| Red Hat OpenShift AI 3.3 | rhoai/odh-llm-d-inference-scheduler-rhel9:1778263962 | RHSA-2026:19712 |
Frequently Asked Questions
Is GHSA-vvp9-7p8x-rfvv in your dependencies?
O3 Security finds GHSA-vvp9-7p8x-rfvv across crates.io dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.