CVE-2026-9669

bz2.BZ2Decompressor reuse after error can cause a stack buffer overflow

State
Published
Severity
8.2 High
Published
Jun 8, 2026
Updated
Aug 13, 2026
Reserved
May 27, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.08.2 HighCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NPSF

Weaknesses

  • CWE-121 Stack-based buffer overflow

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.10.21Affected
  • 3.11.0 to before 3.11.16Affected
  • 3.12.0 to before 3.12.14Affected
  • 3.13.0 to before 3.13.14Affected
  • 3.14.0 to before 3.14.6Affected
  • 3.15.0a1 to before 3.15.0b3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.