CVE-2026-6100
A use‑after‑free bug in Python’s built‑in decompression modules can be triggered when a MemoryError occurs and the same decompressor object is reused. The bug allows an attacker to corrupt memory and potentially execute arbitrary code. The issue is fixed in newer Python releases.
An official fix is available, so this entry is kept for 30 days and then removed automatically.
Who is affected
Python applications that reuse lzma.LZMADecompressor, bz2.BZ2Decompressor, or gzip.GzipFile objects across multiple decompressions after a MemoryError.
Real-world impact
An attacker could cause a crash or gain code execution by forcing a MemoryError and reusing the decompressor, especially in memory‑constrained environments.
Why this severity
The CVSS score reflects the high impact on confidentiality and integrity, the high attack complexity, and the lack of user interaction required.
What to do about it
- 01Upgrade Python to a version that includes the fix for CVE-2026-6100.
- 02Restart any services or applications that use Python.
NVD-referenced vendor advisory
Timeline
- Apr 13, 2026 · Apr 13, 2026PublishedDisclosed and added to the National Vulnerability Database.
- Aug 5, 2026 · 2h agoAdvisory updatedThe NVD record was last revised.
- Aug 5, 2026 · 25m agoOfficial fix availableA vendor patch or mitigation now exists — see the remediation steps above.
How it’s attacked
References & advisories
- github.com/python/cpython/commit/47128…
- github.com/python/cpython/commit/6a5f7…
- github.com/python/cpython/commit/8fc66…
- github.com/python/cpython/commit/c3cf7…
- github.com/python/cpython/commit/e20c6…
- github.com/python/cpython/commit/ea8d7…
- github.com/python/cpython/issues/14839…
- github.com/python/cpython/pull/148396
- mail.python.org/archives/list/security-anno…
- openwall.com/lists/oss-security/2026/04/…
- access.redhat.com/errata/RHSA-2026:10117
- access.redhat.com/errata/RHSA-2026:10140
- access.redhat.com/errata/RHSA-2026:10141
- access.redhat.com/errata/RHSA-2026:10711
- access.redhat.com/errata/RHSA-2026:10745
- access.redhat.com/errata/RHSA-2026:10774
- access.redhat.com/errata/RHSA-2026:10949
- access.redhat.com/errata/RHSA-2026:10950
- access.redhat.com/errata/RHSA-2026:11062
- access.redhat.com/errata/RHSA-2026:11077