Intel

AIKIDO-2026-699471

lzma-rust2 is vulnerable to Uncontrolled Resource Consumption

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 23, 2026
July 23, 2026

53

CVE Score

Medium

Uncontrolled Resource Consumption

Are you affected? Scan for Free

TL;DR

The LZMA, LZMA2 and XZ decoders size their decompression buffers directly from length fields read out of the archive, and several parsing paths use unchecked arithmetic and infallible unwraps. A crafted archive can declare a very large dictionary size or block/index size, causing the decoder to attempt an enormous eager allocation that exhausts memory and aborts the process. Malformed inputs can also trigger integer-overflow panics in the BCJ filters and panics in the multi-threaded LZIP reader when a seek or read fails. The fix defers dictionary allocation and makes it fallible, validates sizes with checked arithmetic, and replaces panicking unwraps with proper error propagation.

How do I fix this?

Upgrade the lzma-rust2 library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and decompress archives from untrusted sources.

Package

Versions

0.1.7 - 0.16.4

Fixed in 0.16.5

Background info

lzma-rust2 is vulnerable to Uncontrolled Resource Consumption in versions 0.1.7 - 0.16.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea