Use of Out-of-range Pointer Offset Affecting lz4_flex package, versions <0.11.6>=0.12.0 <0.12.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-LZ4FLEX-15679874
  • published18 Mar 2026
  • disclosed16 Mar 2026
  • creditMarcono1234

Introduced: 16 Mar 2026

NewCVE-2026-32829  (opens in a new tab)
CWE-201  (opens in a new tab)
CWE-823  (opens in a new tab)

How to fix?

Upgrade lz4_flex to version 0.11.6, 0.12.1 or higher.

Overview

Affected versions of this package are vulnerable to Use of Out-of-range Pointer Offset in the block::decompress_into or block::decompress_into_with_dict functions. An attacker can access sensitive information from uninitialized memory or previous decompression operations by providing specially crafted LZ4 data that triggers out-of-bounds offset values during decompression. This is only exploitable if the block-based API is used and either the safe-decode feature flag is disabled or a reused output buffer is supplied.

Workaround

This vulnerability can be mitigated by zeroing the output buffer before calling the affected functions or by ensuring the safe-decode feature flag is enabled.

References

CVSS Base Scores

version 4.0
version 3.1