Python2.7: Use-after-free (UAF) was possible
Affects python2.7Source GCVE Database
Not known to be exploited · CVSS 9.1 Critical · fixed in 3.10.12-1~22.04.16 : patch python2.7 as a priority.
Data as of 9 Nov 2026, 14:22 UTC
- Patch
- Available – fixed in 3.10.12-1~22.04.16, 3.12.3-1ubuntu0.15, 3.14.4-1ubuntu0.1
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 13 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.
What to do
Upgrade the Ubuntu to 3.10.12-1~22.04.16 (python3.10 package) or 3.12.3-1ubuntu0.15 (python3.12 package) or 3.14.4-1ubuntu0.1 (python3.14 package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10pypy3pkg:deb/ubuntu/pypy3?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSpypy3pkg:deb/ubuntu/pypy3?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSpython3.14pkg:deb/ubuntu/python3.14?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10pypy3pkg:deb/ubuntu/pypy3?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10python3.13pkg:deb/ubuntu/python3.13?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10python3.14pkg:deb/ubuntu/python3.14?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Apply the official patches provided by Ubuntu in versions 3.10.12-1~22.04.16, 3.12.3-1ubuntu0.15, and 3.14.4-1ubuntu0.1 or later. Avoid reusing decompressor instances after a MemoryError occurs during decompression. Using one-shot decompression helper functions such as lzma.decompress(), bz2.decompress(), gzip.decompress(), and zlib.decompress() is not vulnerable. Standard system updates will apply the necessary fixes.
Description
A use-after-free vulnerability exists in Python 2.7 and certain Python 3 versions in the lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile classes. This occurs when a MemoryError during decompression leads to reuse of the decompressor instance without proper cleanup. The vulnerability can cause crashes or potentially arbitrary code execution. It affects programs that reuse decompressor instances after a MemoryError; one-shot decompression functions are not affected. Fixed versions are available in Python 3.10.12, 3.12.3, and 3.14.4.
References
- ubuntu.com/security/CVE-2026-6100 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-6100 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/HTWB2Z6KT5QQX4RYEZAFININDHNOSIF3/ (opens in a new tab)
- openwall.com/lists/oss-security/2026/04/13/10 (opens in a new tab)
- ubuntu.com/security/notices/USN-8509-1 (opens in a new tab)