Skip to main content
EPSS 0.6%top 54%

CVE-2026-6100: CWE-416 Use after free in Python Software Foundation CPython

0
Critical
Published: 04/13/2026 (04/13/2026, 17:15:47 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: CPython

Description

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.

CVSS v4.0

Score 9.1critical

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Python Software Foundation

CPython

Affected versions
>=0 <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
cpython
pkg:pypi/cpython
Affected versions
=3.14.0=3.15.0
GitHub Actionsmore threats →cve
CPython
pkg:github/CPython
Affected versions
>=0 <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

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/12/2026, 14:22:25 UTC

Technical Analysis

The vulnerability CVE-2026-6100 is a use-after-free (CWE-416) in Python's decompression modules (lzma.LZMADecompressor, bz2.BZ2Decompressor, gzip.GzipFile) triggered when a decompression instance is re-used after a MemoryError caused by memory allocation failure under memory pressure. This can lead to arbitrary code execution or information disclosure. The flaw is specific to re-using decompressor instances after an error; one-shot decompression functions that create new instances per call are not vulnerable. Red Hat's advisory highlights that the vulnerability's impact is somewhat mitigated by default process privilege restrictions on their platforms. Red Hat has released updated RHEL-8 based Middleware Containers images with backported patches to address this issue. No alternative mitigations meeting Red Hat's criteria are currently available. The CVSS 4.0 base score is 9.1 (critical), reflecting network attack vector, high complexity, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.

Potential Impact

Exploitation of this vulnerability could allow an attacker to execute arbitrary code or disclose sensitive information by exploiting a use-after-free condition in Python decompression modules when re-using decompressor instances after a MemoryError. The impact is critical, affecting confidentiality, integrity, and availability. However, on Red Hat platforms, the impact is somewhat mitigated by default non-root process privileges and scope limitations. The vulnerability does not affect one-shot decompression helper functions or cases where decompressor instances are not re-used after errors.

Mitigation Recommendations

Red Hat has released updated RHEL-8 based Middleware Containers container images containing backported patches that fix this vulnerability. Users are advised to upgrade to these updated images and rebuild dependent container images. No other mitigations meeting Red Hat's criteria for ease of use, applicability, and stability are currently available. Avoid re-using decompressor instances after a MemoryError as a best practice until patches are applied.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
PSF
Date Reserved
2026-04-10T21:13:45.428Z
Cvss Version
4.0
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-6100","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13812","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:16699","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10711","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19064","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19019","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:11077","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:11062","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10950","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19590","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17619","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19549","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26187","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19571","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19570","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13692","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21682","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:14653","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17525","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19576","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:14652","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:14656","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10949","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10774","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10745","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19216","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19175","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19177","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19176","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:25096","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30078","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30089","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30088","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30087","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10140","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10141","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8822","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8824","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10117","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9228","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:11768","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21275","vendor":"Red Hat"}]

Threat ID: 69dd2f9182d89c981f2dce1c

Added to database: 04/13/2026, 18:01:53 UTC

Last enriched: 08/12/2026, 14:22:25 UTC

Last updated: 09/13/2026, 10:01:32 UTC

Views: 2363

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses