Use-after-free in lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile after re-use under memory pressure
CVE-2026-6100Published 13 Apr 2026, 17:15 UTC
Real-world risk
1.4/ 10Low
Routine
If the vulnerable configuration applies to you: 3.1
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from PSF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| CPythonUbiquitous | < 3.10.21; >= 3.11.0, < 3.11.16; >= 3.12.0, < 3.12.14; >= 3.13.0, < 3.13.14; >= 3.14.0a1, < 3.14.5rc1; >= 3.15.0a1, < 3.15.0b1 | 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.5rc1, 3.15.0b1 |
What to do
Update to a fixed version: 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.5rc1, 3.15.0b1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.9% chance of exploitation in 30 days (percentile 60), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.203
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.2025 × threat 0.851.377
- Rounded to one decimal between 0.1 and 101.4
Exploitation and evidence timeline
- 13 Apr 2026 Published
- 3 Dec 2026 Risk 1.4 (cvss fallback)
Weakness
CWE-416, CWE-787
References
- https://github.com/python/cpython/pull/148396patch
- https://mail.python.org/archives/list/[email protected]/thread/HTWB2Z6KT5QQX4RYEZAFININDHNOSIF3/vendor-advisory
- https://github.com/python/cpython/issues/148395issue-tracking
- https://github.com/python/cpython/commit/6a5f79c8d7bbf22b083b240910c7a8781a59437dpatch
- https://github.com/python/cpython/commit/8fc66aef6d7b3ae58f43f5c66f9366cc8cbbfcd2patch
- https://github.com/python/cpython/commit/c3cf71c3366fe49acb776a639405c0eea6169c20patch
- https://github.com/python/cpython/commit/47128e64f98c3a20271138a98c2922bea2a3ee0epatch
- https://github.com/python/cpython/commit/e20c6c9667c99ecaab96e1a2b3767082841ffc8bpatch
- https://github.com/python/cpython/commit/ea8d735eb084cf8cc021df1a30e90d10a8f052e3patch
- http://www.openwall.com/lists/oss-security/2026/04/13/10
- https://access.redhat.com/security/cve/CVE-2026-6100redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2457932issue-tracking, redhat
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6100.jsonx-sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:52400redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:13812redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:16699redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10711redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19064redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19019redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:11077redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:11062redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10950redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19590redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17619redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19549redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:26187redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19571redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19570redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:13692redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:21682redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:14653redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17525redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19576redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:14652redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:14656redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10949redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10774redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10745redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19216redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19175redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19177redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19176redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:25096redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:30078redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:30089redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:30088redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:30087redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10140redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10141redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:8822redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:8824redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10117redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9228redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:11768redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:21275redhat, vendor-advisory
- CVE-2026-6100 on CVE.org