CVE-2026-6100
JSON

9.1critical

Use-after-free in lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile after re-use under memory pressure

Severity
9.1critical CVSS:4.0 by PSF
Exploit likelihood
0.81% (higher than 54% of CVEs)
Published
Last changed
Assigned by
PSF
Also known as
PSF-0000-CVE-2026-6100BIT-LIBPYTHON-2026-6100BIT-PYTHON-2026-6100BIT-PYTHON-MIN-2026-6100PSF-2026-18

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.

Affected

Product or packageVersionsReported by
Python Software Foundation CPythonbefore 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.0b1CVE List
python3.12Not specified
Not affected: from 0:3.12.12-3.el10_1.3 before *, from 0:3.12.13-2.el10_2 before *, from 0:3.12.9-2.el10_0.9 before *, from 0:3.12.13-2.el8_10 before *, from 0:3.12.12-4.el9_7.3 before *, from 0:3.12.13-2.el9_8 before *
CVE List
python3.14Not specified
Not affected: from 0:3.14.4-2.el10_2 before *, from 0:3.14.4-2.el9_8 before *
CVE List
python3.11Not specified
Not affected: from 0:3.11.13-7.el8_10 before *, from 0:3.11.2-2.el8_8.10 before *, from 0:3.11.13-5.3.el9_7 before *, from 0:3.11.13-9.el9_8 before *, from 0:3.11.2-2.el9_2.12 before *, from 0:3.11.7-1.el9_4.13 before *
CVE List
python3Not specified
Not affected: from 0:3.6.8-76.el8_10 before *, from 0:3.6.8-39.el8_4.11 before *, from 0:3.6.8-47.el8_6.13 before *, from 0:3.6.8-51.el8_8.15 before *
CVE List
python3.9Not specified
Not affected: from 0:3.9.25-3.el9_7.3 before *, from 0:3.9.25-7.el9_8 before *, from 0:3.9.10-4.el9_0.11 before *, from 0:3.9.16-1.el9_2.14 before *, from 0:3.9.18-3.el9_4.13 before *, from 0:3.9.21-2.el9_6.6 before *
CVE List
rhpam-7/rhpam-businesscentral-monitoring-rhel8Not specified
Not affected: from 7.13.5-4.1777325677 before *
CVE List
rhpam-7/rhpam-businesscentral-rhel8Not specified
Not affected: from 7.13.5-4.1777325711 before *
CVE List
rhpam-7/rhpam-controller-rhel8Not specified
Not affected: from 7.13.5-4.1777325710 before *
CVE List
rhpam-7/rhpam-dashbuilder-rhel8Not specified
Not affected: from 7.13.5-3.1777325680 before *
CVE List
rhpam-7/rhpam-kieserver-rhel8Not specified
Not affected: from 7.13.5-4.1777325709 before *
CVE List
rhpam-7/rhpam-process-migration-rhel8Not specified
Not affected: from 7.13.5-4.1777325680 before *
CVE List

All scores

PSF9.1critical CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
redhat-SADP8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasecritical rating

Classification

CWE-416CWE-787CWE-825

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Uso después de liberación (UAF) era posible en ’lzma.LZMADecompressor’, ’bz2.BZ2Decompressor’ y ’gzip.GzipFile’ cuando una asignación de memoria falla con un ’MemoryError’ y la instancia de descompresión se reutiliza. Este escenario puede activarse si el proceso está bajo presión de memoria. La corrección limpia el puntero colgante en esta condición de error específica. La vulnerabilidad solo está presente si el programa reutiliza instancias del descompresor a través de múltiples llamadas de descompresión incluso después de que se genere un ’MemoryError’ durante la descompresión. El uso de las funciones auxiliares para descomprimir datos de una sola vez, como ’lzma.decompress()’, ’bz2.decompress()’, ’gzip.decompress()’ y ’zlib.decompress()’, no se ve afectado, ya que se utiliza una nueva instancia de descompresor por cada llamada. Si la instancia del descompresor no se reutiliza después de una condición de error, este uso tampoco es vulnerable.

References

https://github.com/python/cpython/pull/148396issue-tracking, patch, web
https://mail.python.org/archives/list/security-announce@python.org/thread/HTWB2Z6KT5QQX4RYEZAFININDHNOSIF3/advisory, mailing-list, vendor-advisory, web
https://github.com/python/cpython/issues/148395issue-tracking, report, vendor-advisory, web
https://github.com/python/cpython/commit/6a5f79c8d7bbf22b083b240910c7a8781a59437dfix, patch, web
https://github.com/python/cpython/commit/8fc66aef6d7b3ae58f43f5c66f9366cc8cbbfcd2fix, patch, web
https://github.com/python/cpython/commit/c3cf71c3366fe49acb776a639405c0eea6169c20fix, patch, web
https://github.com/python/cpython/commit/47128e64f98c3a20271138a98c2922bea2a3ee0efix, patch, release-notes, web
https://github.com/python/cpython/commit/e20c6c9667c99ecaab96e1a2b3767082841ffc8bfix, patch, web
https://github.com/python/cpython/commit/ea8d735eb084cf8cc021df1a30e90d10a8f052e3fix, patch, web
http://www.openwall.com/lists/oss-security/2026/04/13/10mailing-list, third-party-advisory, web
https://access.redhat.com/security/cve/CVE-2026-6100third-party-advisory, vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2457932issue-tracking, third-party-advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2026-6100 changed 2026-08-13CVE Terms of Use
Python Software FoundationPSF-0000-CVE-2026-6100 changed 2026-07-06CC-BY-4.0
Python Software FoundationPSF-2026-18 changed 2026-08-05CC-BY-4.0
NVDCVE-2026-6100 changed 2026-11-30Public domain
Bitnami Vulnerability DatabaseBIT-LIBPYTHON-2026-6100 changed 2026-08-19Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-2026-6100 changed 2026-08-19Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-MIN-2026-6100 changed 2026-08-19Apache-2.0