CVE-2026-9669: CWE-121 Stack-based buffer overflow in Python Software Foundation CPython
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.
AI Analysis
Technical Summary
CVE-2026-9669 describes a stack-based buffer overflow in the bz2.BZ2Decompressor component of CPython. The issue arises when a decompression error triggers an OSError, and the application retries decompression with the same decompressor object. Crafted input can cause the decompressor to continue from an invalid internal state, resulting in out-of-bounds writes to a stack buffer. This vulnerability can cause process crashes when processing untrusted data. The CVSS 4.0 base score is 8.2, indicating high severity. No official patch or remediation level has been published by the Python Software Foundation as of the provided data.
Potential Impact
The vulnerability can cause a stack-based buffer overflow leading to out-of-bounds memory writes. This may result in a denial of service via process crash when processing specially crafted untrusted input. There is no indication of code execution or privilege escalation from the provided data. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a fix is available, avoid reusing the same bz2.BZ2Decompressor object after a decompression error, especially when processing untrusted data. Applications should create a new decompressor instance for each decompression attempt to prevent resuming from an invalid internal state.
CVE-2026-9669: CWE-121 Stack-based buffer overflow in Python Software Foundation CPython
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.
CVSS v4.0
Score 8.2high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-9669 describes a stack-based buffer overflow in the bz2.BZ2Decompressor component of CPython. The issue arises when a decompression error triggers an OSError, and the application retries decompression with the same decompressor object. Crafted input can cause the decompressor to continue from an invalid internal state, resulting in out-of-bounds writes to a stack buffer. This vulnerability can cause process crashes when processing untrusted data. The CVSS 4.0 base score is 8.2, indicating high severity. No official patch or remediation level has been published by the Python Software Foundation as of the provided data.
Potential Impact
The vulnerability can cause a stack-based buffer overflow leading to out-of-bounds memory writes. This may result in a denial of service via process crash when processing specially crafted untrusted input. There is no indication of code execution or privilege escalation from the provided data. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a fix is available, avoid reusing the same bz2.BZ2Decompressor object after a decompression error, especially when processing untrusted data. Applications should create a new decompressor instance for each decompression attempt to prevent resuming from an invalid internal state.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-05-27T03:13:18.152Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2746c4e29bf47b50b779cf
Added to database: 06/08/2026, 22:48:36 UTC
Last enriched: 07/08/2026, 10:48:33 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 189
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.