← Back to CVE List
Vulnerability Intelligence Report
Use-after-free in lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile after re-use under memory pressure

CVE-2026-6100

Use-after-free (UAF) was possible in the `lzma.LZMADecompressor`, `bz2.BZ2Decompressor`, and `gzip.GzipFile` when a memory allocation fails with a `MemoryError` and the decompression instance is re-used. This scenario can be triggered if the process is under memory pressure. The fix cleans up the dangling pointer in this specific error condition. The vulnerability is only present if the program re-uses decompressor instances across multiple decompression calls even after a `MemoryError` is raised during decompression. Using the helper functions to one-shot decompress data such as `lzma.decompress()`, `bz2.decompress()`, `gzip.decompress()`, and `zlib.decompress()` are not affected as a new decompressor instance is used per call. If the decompressor instance is not re-used after an error condition, this usage is similarly not vulnerable.

No Active Exploit Signals
CVSS Base Score
9.1
CRITICAL
EPSS Probability:0.58%
Executive Threat Verdict
Evaluating...
Evaluating Threat Landscape...
Assessing known weaponization, exploitation telemetry, and federal advisories.
Attack Surface
—
Authentication
—
Weaponization
—
SSVC Action
—

Weaknesses (CWE)

CWE-416 ↗CWE-416 Use after free
CWE-787 ↗CWE-787 Out-of-bounds write

Affected Products & Versions

Vendor Product Affected Versions
Python Software Foundation CPython 0 < 3.10.21 (affected), 3.11.0 < 3.11.16 (affected), 3.12.0 < 3.12.14 (affected), 3.13.0 < 3.13.14 (affected), 3.14.0a1 < 3.14.5rc1 (affected), 3.15.0a1 < 3.15.0b1 (affected)

References & Technical Advisories

No reference links found.

Threat Intelligence Signals

EPSS Score
0.579%

Identity & Timeline

StatusPUBLISHED
Assigning AuthorityPython Software Foundation · Vendor · USA
Reserved2026-04-10T21:13:45
Published2026-04-13T17:15:47
Last Updated2026-08-13T00:27:12

LINK COPIED TO CLIPBOARD