CVE-2026-6100: Vulnerability in Python Software Foundation CPython
Critical. 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.
CWE-416, CWE-787
- Exploitation
- None confirmed
- Severity
- 9.1 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Vector
- CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
- Weakness
- CWE-416, CWE-787, CWE-825
- Published
- 13 Apr 2026
- Last change
- 30 Nov 2026
Affected products
Affected versions and the first fixed release
- Python Software Foundation CPython Before 3.10.21; From 3.11.0 before 3.11.16; From 3.12.0 before 3.12.14; From 3.13.0 before 3.13.14; From 3.14.0a1 before 3.14.5rc1; From 3.15.0a1 before 3.15.0b1. Fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.5rc1, 3.15.0b1
- Python Before 3.10.21; From 3.11.0 before 3.11.16; From 3.12.0 before 3.12.14; From 3.13.0 before 3.13.14; From 3.14.0 before 3.14.5; Version 3.15.0. Fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.5
- Red Hat Ai Inference Server From 3.2.0 before 3.2.2; From 3.3.0 before 3.3.5. Fixed in 3.2.2, 3.3.5
- Red Hat Hardened Images All versions. No fixed version recorded
- Red Hat Openshift Ai From 3.4 before 3.4.3. Fixed in 3.4.3
- Red Hat Openshift Container Platform From 4.10 through 4.12.103. No fixed version recorded
- Red Hat Update Infrastructure From 5.0 before 5.2. Fixed in 5.2
- Red Hat Enterprise Linux Versions 6.0, 7.0, 8.0, 9.0, 10.0. No fixed version recorded
Patches and fixes
Updates, commits and release notes
- github.com/python/cpython/commit/47128e64f98c3a20271138a98c2922bea2a3ee0e
- github.com/python/cpython/commit/6a5f79c8d7bbf22b083b240910c7a8781a59437d
- github.com/python/cpython/commit/8fc66aef6d7b3ae58f43f5c66f9366cc8cbbfcd2
- github.com/python/cpython/commit/c3cf71c3366fe49acb776a639405c0eea6169c20
- github.com/python/cpython/commit/e20c6c9667c99ecaab96e1a2b3767082841ffc8b
- github.com/python/cpython/commit/ea8d735eb084cf8cc021df1a30e90d10a8f052e3
Related
- CPython vulnerabilities Recent advisories, watch this product
- Python vulnerabilities Recent advisories, watch this product