bz2.BZ2Decompressor reuse after error can cause a stack buffer overflow
CVE-2026-9669Published 8 Jun 2026, 22:01 UTC
Real-world risk
0.7/ 10Low
Routine
If the vulnerable configuration applies to you: 1.5
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.2
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from PSF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| CPythonUbiquitous | < 3.10.21; >= 3.11.0, < 3.11.16; >= 3.12.0, < 3.12.14; >= 3.13.0, < 3.13.14; >= 3.14.0, < 3.14.6; >= 3.15.0a1, < 3.15.0b3 | 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.6, 3.15.0b3 |
What to do
Update to a fixed version: 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.6, 3.15.0b3.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 39), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.203
- Threat T1: Nothing known0.850
- 10 × impact 0.4 × prerequisites 0.2025 × threat 0.850.689
- Rounded to one decimal between 0.1 and 100.7
Exploitation and evidence timeline
- 8 Jun 2026 Published
- 3 Dec 2026 Risk 0.7 (cvss fallback)
Weakness
CWE-121
References
- https://github.com/python/cpython/pull/150600patch
- https://mail.python.org/archives/list/[email protected]/thread/DBJZETMGUIFK7DVUWMOXHD3Z6IX2QPSX/vendor-advisory
- https://github.com/python/cpython/issues/150599issue-tracking
- https://github.com/python/cpython/commit/157a5df8cb5d82b33f918a7489e72ce95ceb12b6patch
- https://github.com/python/cpython/commit/5755d0f083949ff3c5bf3a37e673e24e306b036epatch
- https://github.com/python/cpython/commit/619a12b2e545391dc436b3af79dda22337382a6fpatch
- https://github.com/python/cpython/commit/d3ca26983dfbccdf609f24ff5877dc3118e4702dpatch
- https://github.com/python/cpython/commit/938ec030e90c5e53f1faac6fab1643f14e4f4a79patch
- https://github.com/python/cpython/commit/991e6cf86496718c4ef00b362d640e00cb5c85b2patch
- https://github.com/python/cpython/commit/1ba6135eae75ad8413413caeeedb56ae72320636patch
- http://www.openwall.com/lists/oss-security/2026/06/08/17
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html
- CVE-2026-9669 on CVE.org