oss-sec mailing list archives

[oss-security][CVE-2026-9669] CPython: bz2.BZ2Decompressor reuse after error can cause a stack buffer overflow


From: Alan Coopersmith <alan.coopersmith () oracle com>
Date: Mon, 8 Jun 2026 15:06:19 -0700

The CVE record currently lists versions "affected from 0 before 3.16.0"


-------- Forwarded Message --------
Subject:        [Security-announce][CVE-2026-9669] bz2.BZ2Decompressor reuse after error can cause a stack buffer 
overflow
Date:   Mon, 8 Jun 2026 13:07:31 -0700
From:   Emma Smith <emma () emmatyping dev>
Reply-To:       security-sig () python org
To:     security-announce () python org



There is a HIGH severity vulnerability affecting 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.

Please see the linked CVE ID for the latest information on affected versions:

*https://www.cve.org/CVERecord?id=CVE-2026-9669
*https://github.com/python/cpython/pull/150600

_______________________________________________
Security-announce mailing list -- security-announce () python org
https://mail.python.org/mailman3//lists/security-announce.python.org



Current thread: