CVE-2026-6100

Publish date: April 15, 2026
Severity
High
CVSS score
9.1
Package
python3.13
Affected versions
>= 3.13.2-any2, < 3.13.5-2+e17

A use-after-free (UAF) vulnerability exists in the `lzma.LZMADecompressor`, `bz2.BZ2Decompressor`, and `gzip.GzipFile`. This situation arises when a memory allocation fails, resulting in a `MemoryError`, and the decompression instance is re-used. Such a scenario may occur when the process is experiencing memory pressure. The fix addresses the issue by cleaning up the dangling pointer in this specific error condition.The vulnerability only arises if decompressor instances are reused for multiple decompression calls after a `MemoryError` has occurred. However, using helper functions like `lzma.decompress()`, `bz2.decompress()`, `gzip.decompress()`, and `zlib.decompress()` is unaffected, as these calls create a new decompressor instance each time. Similarly, if the decompressor instance is not reused following an error condition, it is not vulnerable.