CVE-2026-6100: CWE-416 Use after free in Python Software Foundation CPython
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.
AI Analysis
Technical Summary
This vulnerability involves a use-after-free condition in CPython's decompression modules (lzma, bz2, gzip) when a decompressor instance is reused after a MemoryError caused by memory allocation failure. The flaw arises specifically if the same decompressor instance is reused across multiple decompression calls after such an error, leading to a dangling pointer and potential arbitrary code execution or information disclosure. One-shot decompression functions that create new decompressor instances per call are not affected. Red Hat has issued updated container images with backported fixes to address this issue.
Potential Impact
The vulnerability allows for arbitrary code execution or information disclosure via use-after-free in decompression modules under specific conditions of memory pressure and decompressor instance reuse after a MemoryError. The CVSS 4.0 score is 9.1 (critical), indicating high impact with network attack vector, high complexity, and potential for privilege escalation and high confidentiality and integrity impact.
Mitigation Recommendations
Red Hat has released updated RHEL-8 based Middleware Containers container images that include backported patches fixing this vulnerability. Users are advised to upgrade to these updated images and rebuild any dependent container images. No other mitigation is specified or required if these updated images are used. Patch status is confirmed via Red Hat advisory; a fix is available through updated container images.
CVE-2026-6100: CWE-416 Use after free in Python Software Foundation 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
Affected software
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
Technical Analysis
This vulnerability involves a use-after-free condition in CPython's decompression modules (lzma, bz2, gzip) when a decompressor instance is reused after a MemoryError caused by memory allocation failure. The flaw arises specifically if the same decompressor instance is reused across multiple decompression calls after such an error, leading to a dangling pointer and potential arbitrary code execution or information disclosure. One-shot decompression functions that create new decompressor instances per call are not affected. Red Hat has issued updated container images with backported fixes to address this issue.
Potential Impact
The vulnerability allows for arbitrary code execution or information disclosure via use-after-free in decompression modules under specific conditions of memory pressure and decompressor instance reuse after a MemoryError. The CVSS 4.0 score is 9.1 (critical), indicating high impact with network attack vector, high complexity, and potential for privilege escalation and high confidentiality and integrity impact.
Mitigation Recommendations
Red Hat has released updated RHEL-8 based Middleware Containers container images that include backported patches fixing this vulnerability. Users are advised to upgrade to these updated images and rebuild any dependent container images. No other mitigation is specified or required if these updated images are used. Patch status is confirmed via Red Hat advisory; a fix is available through updated container images.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-04-10T21:13:45.428Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
- 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: 07/16/2026, 09:10:02 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 2250
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.