Skip to main content
EPSS 0.7%top 50%

CVE-2026-9669: CWE-121 Stack-based buffer overflow in Python Software Foundation CPython

0
High
Published: 06/25/2026 (06/25/2026, 07:40:50 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: 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

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Python Software Foundation

CPython

Affected versions
>=0 <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
cpython
pkg:pypi/cpython
Affected versions
=3.14.0=3.15.0
GitHub Actionsmore threats →cve
CPython
pkg:github/CPython
Affected versions
>=0 <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

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/12/2026, 13:41:40 UTC

Technical Analysis

The bz2.BZ2Decompressor object in CPython can be reused after an OSError caused by a decompression error. If an application catches this error and retries decompression using the same decompressor instance, crafted input may cause the decompressor to resume from an invalid internal state. This leads to out-of-bounds writes on the stack, resulting in a stack-based buffer overflow vulnerability (CWE-121). The flaw affects CPython versions 3.14.0 and 3.15.0a1. The CVSS 4.0 base score is 8.2, indicating high severity. No official patch or remediation level is currently documented.

Potential Impact

Successful exploitation can cause the Python process to crash due to out-of-bounds writes on the stack when processing crafted untrusted data. This may lead to denial of service. There is no indication of code execution or privilege escalation from the provided data.

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 bz2.BZ2Decompressor objects after a decompression error in untrusted contexts.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
PSF
Date Reserved
2026-05-27T03:13:18.152Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a2746c4e29bf47b50b779cf

Added to database: 06/08/2026, 22:48:36 UTC

Last enriched: 08/12/2026, 13:41:40 UTC

Last updated: 09/11/2026, 22:06:35 UTC

Views: 239

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses