Python disclosed CVE-2026-9669, a high-severity flaw in CPython's bz2.BZ2Decompressor that can cause a stack buffer overflow when applications continue using the same decompressor object after a decompression error. If software catches the resulting OSError and retries with attacker-crafted compressed data, decompression can resume from an invalid internal state, leading to out-of-bounds writes to a stack buffer and potentially crashing the process while handling untrusted input.
The issue was reported in CPython as gh-150599, and maintainers merged a fix in pull request #150600 to block decompressor reuse after errors by preserving libbz2 error state and raising ValueError on reuse. Python published the vulnerability through its security-announce channel and it was echoed on the oss-security mailing list, while remediation was prepared for the main branch and backported to supported releases including Python 3.15, 3.14, 3.13, and 3.12.

See affected versions and whether adversaries are exploiting it.
5 events from the most recent confirmed update back to the earliest known activity.
Python's security-announce mailing list disclosed CVE-2026-9669 as a high-severity vulnerability in CPython's bz2.BZ2Decompressor. The advisory explained that reusing a decompressor after an OSError can resume from an invalid state and cause a stack buffer overflow when handling crafted input.
The CPython pull request associated with the bz2 decompressor flaw was explicitly tagged with the type-security label, marking it as a security issue in project tracking.
The security fix for the bz2 stack buffer overflow was merged into the CPython main branch. The remediation was also prepared for backporting to supported release branches.
A pull request was opened to fix the bz2 flaw by storing libbz2 decompression errors on the BZ2Decompressor object and preventing reuse after an error, including raising a ValueError in the affected path.
A CPython issue was opened reporting a crash in the bz2 decompressor related to reusing a BZ2Decompressor after an error. The report became the tracked issue for the vulnerability later assigned CVE-2026-9669.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
5 references tracked. Mallory keeps watching after this page renders.
seclists.org
Open sourcemail.python.org
Open sourcegithub.com
Open sourcegithub.com
Open sourcegithub.com
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.