CVE-2026-6100
Use-after-free in lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile after re-use under memory pressure
Check your servers for CVE-2026-6100
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-6100 affects cpython, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.83%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 58.6% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 13 Apr 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| CPython |
affected before 3.10.21 affected from 3.11.0, before 3.11.16 affected from 3.12.0, before 3.12.14 affected from 3.13.0, before 3.13.14 affected from 3.14.0a1, before 3.14.5rc1 affected from 3.15.0a1, before 3.15.0b1
Other versions: unaffected
|
Is my server affected?
Find the installed version of cpython and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i cpython
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-6100 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-6100RHEL, Rocky, Alma, Fedora
rpm -q cpython
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-6100Alpine
apk list --installed | grep -i cpythonWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-6100
trivy image --scanners vuln IMAGE | grep CVE-2026-6100
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://mail.python.org/archives/list/security-announce@python.org/thread/HTWB2Z6KT5QQX4RYEZAFININDHNOSIF3/ mail.python.org · vendor advisory
- https://access.redhat.com/security/cve/CVE-2026-6100 access.redhat.com · vdb entry
- RHBZ#2457932 bugzilla.redhat.com · issue tracking
- https://access.redhat.com/errata/RHSA-2026:52400 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:13812 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:16699 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10711 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19064 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19019 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:11077 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:11062 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10950 access.redhat.com · vendor advisory
33 more
- https://access.redhat.com/errata/RHSA-2026:19590 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:17619 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19549 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:26187 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19571 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19570 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:13692 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:21682 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:14653 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:17525 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19576 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:14652 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:14656 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10949 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10774 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10745 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19216 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19175 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19177 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:19176 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:25096 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:30078 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:30089 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:30088 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:30087 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10140 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10141 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:8822 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:8824 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:10117 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:9228 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:11768 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:21275 access.redhat.com · vendor advisory
Patches and release notes
- https://github.com/python/cpython/pull/148396 github.com · patch
- https://github.com/python/cpython/commit/6a5f79c8d7bbf22b083b240910c7a8781a59437d github.com · patch
- https://github.com/python/cpython/commit/8fc66aef6d7b3ae58f43f5c66f9366cc8cbbfcd2 github.com · patch
- https://github.com/python/cpython/commit/c3cf71c3366fe49acb776a639405c0eea6169c20 github.com · patch
- https://github.com/python/cpython/commit/47128e64f98c3a20271138a98c2922bea2a3ee0e github.com · patch
- https://github.com/python/cpython/commit/e20c6c9667c99ecaab96e1a2b3767082841ffc8b github.com · patch
- https://github.com/python/cpython/commit/ea8d735eb084cf8cc021df1a30e90d10a8f052e3 github.com · patch
Other references
- https://github.com/python/cpython/issues/148395 github.com · issue tracking
- http://www.openwall.com/lists/oss-security/2026/04/13/10 openwall.com
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6100.json security.access.redhat.com
Source: the record CVE-2026-6100 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse