Python Software Foundation CPython
bz2.BZ2Decompressor reuse after error can cause a stack buffer overflow
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.2high · scored by CNA · CWE-121
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Python Software Foundation CPython
- < 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
Fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.6, 3.15.0b3
Mitigation
Upgrade CPython to 3.10.21 or 3.11.16 or 3.12.14 or 3.13.14 or 3.14.6 or 3.15.0b3 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.