CVE Database›Document archive›CVE-2026-9669

CVE-2026-9669

python: Python: Denial of Service via out-of-bounds write in BZ2 decompression

Loading…

Severity

Moderate

Red Hat Product Security

5.9

CVSS 3.1

Review impact separately from score.

Published · June 9, 2026

Updated · September 21, 2026

Description

A flaw was found in Python's bz2.BZ2Decompressor component. An attacker could provide specially crafted input that, when processed by an application reusing a decompressor object after an error, could lead to out-of-bounds writes in memory. This memory corruption could cause the application to crash, resulting in a Denial of Service (DoS).

Statement

This Moderate-impact flaw in Python's bz2.BZ2Decompressor component affects Red Hat Enterprise Linux 8. It allows an attacker to trigger a denial of service by providing specially crafted compressed data. Exploitation requires an application to reuse a BZ2Decompressor object after a decompression error, leading to out-of-bounds writes and a crash.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Applications processing untrusted BZ2 compressed data should avoid reusing bz2.BZ2Decompressor objects after a decompression error. Instead, a new bz2.BZ2Decompressor instance should be created for each new decompression attempt or after an error occurs. This prevents the decompressor from resuming from an invalid internal state.

CVSS / CWE

CVSS 3.1 · 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

CWE-787 · Out-of-bounds Write