ADVISORIES

GitHub Advisory Database

GHSA-9v8h-qqgm-4m35

Brotli: Out-of-bounds write in the Brotli decoder ("Node2Shell") also affects the PyPI Brotli package

Details

A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli versions 1.0.3 through 1.2.0 on all platforms allows a remote unauthenticated attacker to corrupt adjacent decoder state memory, disclose sensitive memory contents, cause a denial of service, or potentially execute arbitrary code using a crafted Brotli-compressed stream.

Users need to update any Brotli libraries or binaries between 1.0.3 through 1.2.0 to the latest available version: 1.0.10 or 1.1.1 or 1.2.1.

Affected packages

EcosystemPackageAffected versions
PyPIbrotli
From 1.0.3 before 1.2.1 (fixed in 1.2.1)
PyPIbrotlicffi
From 1.0.3 before 1.2.1.0 (fixed in 1.2.1.0)

References