Description
bz2.BZ2Decompressor objects could be reused after a decompression error. If an application caught the resulting OSError and retried with the same decompressor, crafted input could cause the decompressor to resume from an invalid internal state and perform out-of-bounds writes to a stack buffer. This could crash the process when processing untrusted data.
References10
- github.com/python/cpython/commit/157a5df8cb5d82b33f918a7489e72c…
- github.com/python/cpython/commit/1ba6135eae75ad8413413caeeedb56…
- github.com/python/cpython/commit/5755d0f083949ff3c5bf3a37e673e2…
- github.com/python/cpython/commit/619a12b2e545391dc436b3af79dda2…
- github.com/python/cpython/commit/938ec030e90c5e53f1faac6fab1643…
- github.com/python/cpython/commit/991e6cf86496718c4ef00b362d640e…
- github.com/python/cpython/commit/d3ca26983dfbccdf609f24ff5877dc…
- github.com/python/cpython/issues/150599
- github.com/python/cpython/pull/150600
- mail.python.org/archives/list/[email protected]/thre…
Metrics
- CVSS 4.0
-
8.2
HIGH
Score source: CNA
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 38 · as of 15 November 2026
- CWE
- CWE-121
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.