CVE-2026-111497: Brotli decoder writes past its buffer on a crafted compressed stream

ByLinuxtastic

November 29, 2026 #Brotli, #CVE

Brotli is the compression format behind Content-Encoding: br, and its reference decoder, Google’s libbrotli, is linked into nginx and Apache modules, curl, Python, browsers and a long tail of applications; Node.js ships a copy inside node:zlib. In every release from 1.0.3 to 1.2.0 the streaming decoder treated an invalid block switch as “give me more input” rather than as an error and kept appending to an eight-byte internal buffer, so a crafted compressed stream writes past it, corrupts the decoder’s state and, in the words of the Google CNA, lets a remote unauthenticated attacker disclose memory, crash the process or potentially execute code. CISA lists it as exploited, and EPSS puts it in the top hundredth of a percent of all CVEs. Upgrade the system libbrotli packages and any Node.js below 22.23.4, 24.22.1 or 26.12.1, then restart every process that had the old library mapped. This page shows how to find both the library and the copies hidden inside other programs, what a crash from this bug looks like, and why fixing one copy does not fix the other.

CVE-2026-111497 at a glance.

ComponentThe Brotli decoder in Google’s reference library, c/dec/decode.c, shipped as libbrotlidec (Debian/Ubuntu libbrotli1, RHEL brotli/libbrotli, Alpine brotli-libs) and bundled into Node.js (node:zlib), Python’s Brotli and brotlicffi wheels, and other statically linked programs. The Go port andybalholm/brotli carries the same bug, fixed in its 1.2.7
Affected versionsBrotli 1.0.3 to 1.0.9, 1.1.0 and 1.2.0 on all platforms; Node.js 22.x below 22.23.4, 24.x below 24.22.1, 26.x below 26.12.1 (bundled copies)
Fixed inBrotli 1.0.10, 1.1.1 and 1.2.1 (released 21 October 2026); Node.js 22.23.4, 24.22.1, 26.12.1 (21 October 2026); distribution packages in the table below
SeverityCVSS 3.1 9.8 Critical from NVD (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H); CVSS 4.0 9.2 Critical from the Google CNA. Red Hat scores it 8.1 (AC:H) and rates it Important; Node.js calls it High; Ubuntu priority High. CWE-787 out-of-bounds write and CWE-252 unchecked return value
Exploited in the wildOn CISA’s Known Exploited Vulnerabilities catalogue, added 27 October 2026; federal remediation was due 10 November 2026. Ransomware use is recorded as Unknown. EPSS 0.99987 (99.99th percentile) on 28 November 2026
Who is exposedany process that decodes Brotli data an attacker can supply: a Node.js service that decompresses br request bodies or fetches br responses, a crawler or API client using curl or Python against untrusted servers, a browser, a proxy or CDN edge that decompresses upstream content. Serving compressed content is not the vulnerable direction; decoding it is. Not affected: 1.0.10, 1.1.1, 1.2.1 and later, and the fixed Node.js releases
PublishedCVE record 22 October 2026; this page built 29 November 2026, last updated 29 November 2026

What it is

A Brotli stream is a sequence of meta-blocks, and inside them the encoder can switch between block types for literals, commands and distances. The streaming decoder reads those switch commands a few bits at a time, and when it does not yet have enough input it stashes what it has in a small internal buffer, eight bytes long, and asks for more. The bug, per Node’s description of the fix, is in the error handling: a block switch that is invalid should end the decode with a format error, but the decoder returned “needs more input” instead and kept appending to that eight-byte buffer. A stream built to produce the condition repeatedly writes past the end of the buffer into the neighbouring decoder state, which is CWE-787, and the root cause is a return value nobody checked, which is CWE-252. From there the attacker controls bytes in a structure the decoder trusts, and the usual outcomes follow: a crash, a read of memory that should not have been returned, or control of execution.

Google fixed it in c/dec/decode.c in commit b418fa81 and released 1.0.10, 1.1.1 and 1.2.1 on 21 October 2026, one for each line still in use; the release notes carry a single security line naming the CVE. The same day Node.js shipped 22.23.4, 24.22.1 and 26.12.1 with its own mitigation commit, a18ec92, in the bundled copy, crediting OpenAI Codex Security for the report. The CVE record was published on 22 October and CISA added it to the exploited list five days later.

What makes this one awkward on Linux is that there is never only one copy. The distribution’s libbrotlidec is used by nginx’s and Apache’s Brotli modules, by curl when it was built with Brotli support, by Python’s standard-library-adjacent packages and by most desktop software. Node.js on Ubuntu 22.04 and later and on RHEL 10 links the system library, but Node 24 on RHEL 8 and 9, Node on Ubuntu 20.04, and every Node installed from NodeSource, nvm, a Docker image or a tarball carries its own, and the system package update does nothing for those. Python wheels and Go binaries statically include theirs. Red Hat’s CVE page spells this out and tells customers to update the system package even where the Node package is listed as not affected.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 29 November 2026 for the brotli source package, with the nodejs package noted where the tracker lists it; the link in the row is the tracker page, which will be newer than this one.

DistributionStatusFixed package
AlpineNot consulted—
Debianbrotli fixed: DLA-4855-1 (bookworm), DSA-6582-1 (trixie); forky and sid at 1.2.1-1. nodejs still vulnerable on bookworm and trixie (bundled copy), fixed in forky and sidbookworm libbrotli1 1.0.9-2+deb12u1, trixie libbrotli1 1.1.0-2+deb13u1
UbuntuPriority High; brotli fixed on every release (USN-8956-1 and -2); nodejs not affected on 22.04 and later (system library), vulnerable on 20.04 with no fix listed26.10 1.2.0-4ubuntu0.1, 26.04 1.2.0-3ubuntu0.1, 24.04 1.1.0-2ubuntu0.1, 22.04 1.0.9-2ubuntu0.1, 20.04 1.0.7-6ubuntu0.1+esm1 (Pro)
RHEL, Rocky, Alma, CentOS StreamImportant, bulletin RHSB-2026-015; Node 22 on RHEL 8/9 and Node 22/24 on RHEL 10 use the system library, Node 24 on RHEL 8/9 bundles its own. The CVE page as read gave no erratum numberssee the Red Hat page for brotli and nodejs errata per stream
Fedora, openSUSE/SLE, ArchNot consulted—
Node.js from nodejs.org, NodeSource, nvm, Docker imagesAffected below 22.23.4 / 24.22.1 / 26.12.1; the system package does not fix theseNode.js 22.23.4, 24.22.1 or 26.12.1

How to check

Three questions: which version of the shared library is installed, which running processes have it mapped, and which programs carry a private copy. The second matters because a library update does not reach a process that loaded the old file; the third because the update does not reach a program that never used the shared library at all.

# 1. the shared library package
dpkg -l libbrotli1 libbrotlidec1 2>/dev/null | awk '/^ii/{print $2, $3}'     # Debian/Ubuntu
rpm -q brotli libbrotli 2>/dev/null                                          # RHEL family
apk info -v brotli-libs 2>/dev/null                                          # Alpine

# 2. which running processes have the decoder mapped (the ones to restart after the update)
sudo grep -l 'libbrotlidec' /proc/[0-9]*/maps 2>/dev/null | cut -d/ -f3 | xargs -r ps -o pid=,user=,comm= -p | sort -k3 | uniq -f2 -c

# 3. private copies: Node.js, Python wheels, static binaries
node -p '"node " + process.versions.node + ", brotli " + process.versions.brotli' 2>/dev/null
python3 -c 'import brotli,sys; print("python Brotli", brotli.__version__)' 2>/dev/null
pip list 2>/dev/null | grep -iE '^(brotli|brotlicffi) '
ldd "$(command -v node)" 2>/dev/null | grep -i brotli || echo "node: brotli not dynamically linked (bundled or absent)"

If step 1 shows the fixed package for your release and step 2 lists nothing, the system side is done. If step 2 lists processes, they were started before the update and are still running the old code; restart them. For step 3, the Node version is what matters: 22.23.4, 24.22.1 or 26.12.1 and later are fixed whatever process.versions.brotli says, because Node patched its bundled copy rather than bumping it, and a node that ldd shows linked against libbrotlidec.so is fixed by the system package instead. A Python Brotli below 1.2.1 or brotlicffi below 1.2.1.0 needs a pip upgrade of its own.

Because this one is on the KEV list, look back. The bug announces itself as decoder crashes before anyone gets code execution out of it, so segmentation faults in processes that decode Brotli (Node services, curl-based fetchers, Python scrapers, nginx or Apache with a Brotli module) in the weeks since 21 October are the signal.

# crashes in anything that decodes Brotli
sudo journalctl -k --since '2026-10-15' | grep -iE 'segfault.*(node|curl|python|nginx|httpd|apache2)'
coredumpctl list --since '2026-10-15' 2>/dev/null | tail -30

# Node services: a br-encoded request body is the inbound vector
sudo zgrep -hi 'content-encoding: br' /var/log/nginx/access.log* 2>/dev/null | wc -l   # only if you log request headers
# outbound: what your fetchers talked to around the crash times
sudo journalctl -u your-node-service --since '2026-10-15' | grep -iE 'ECONNRESET|exited|signal' | tail -30

A cluster of segfaults in one Node service followed by that service quietly surviving a request it used to die on is the pattern of an exploit being tuned; a shell or downloader running as the service’s user afterwards is not a false positive. Treat the process’s secrets (tokens in its environment, files it could read) as disclosed, rotate them, and review from there. Restoring a Linux Server covers the rebuild if it comes to that.

How to fix it

Update the shared library from your distribution, update Node.js by whichever route installed it, and restart everything that had the old copy loaded. There is no configuration change afterwards.

# the shared library
sudo apt-get update && sudo apt-get install --only-upgrade libbrotli1 libbrotlidec1 libbrotlienc1 nodejs   # Debian/Ubuntu
sudo dnf update brotli libbrotli nodejs                                                                  # RHEL family
apk upgrade brotli-libs nodejs                                                                           # Alpine

# Node.js installed outside the distribution
nvm install 22.23.4 && nvm alias default 22.23.4      # or 24.22.1 / 26.12.1; then redeploy services onto it
docker pull node:22-alpine                                # rebuild images FROM a tag at or above the fixed release

# Python copies
pip install --upgrade 'Brotli>=1.2.1' 'brotlicffi>=1.2.1.0'

# restart what still has the old library mapped, then confirm nothing does
sudo needrestart -r a 2>/dev/null || sudo systemctl restart nginx apache2 httpd 2>/dev/null
sudo grep -l 'libbrotlidec.*(deleted)' /proc/[0-9]*/maps 2>/dev/null | cut -d/ -f3 | xargs -r ps -o pid=,comm= -p

Neither Google nor Node.js publishes a workaround. If a service cannot be updated yet, the exposure can be reduced by refusing to decode Brotli from strangers: a Node application that accepts compressed request bodies can have its proxy strip or reject Content-Encoding: br on requests, and an outbound client can be told not to advertise br in Accept-Encoding so servers never send it. Both are reductions, not fixes; a crafted stream can still arrive through a path you did not think of.

Do not stop at the package manager. The most common mistake with this CVE is updating libbrotli1, seeing a clean tracker, and leaving a NodeSource or nvm Node 24 in place with its bundled 1.1.0; or the reverse, updating Node and leaving nginx’s Brotli module on the old shared library. Ubuntu’s own tracker shows the shape of the problem on 20.04, where the fixed library ships but the distribution’s Node still bundles a vulnerable copy with no fix listed. Check each copy on its own terms.

Sources

  • CVE-2026-111497 at CVE.org — the Google CNA record: description, affected ranges, CVSS 4.0 9.2, CWE-787 and CWE-252 (published 22 October 2026)
  • NVD — status Analyzed, NVD’s own CVSS 3.1 9.8, CPE ranges for Brotli and Node.js, KEV dates (last modified 27 November 2026)
  • CISA Known Exploited Vulnerabilities — added 27 October 2026, action due 10 November 2026
  • Brotli v1.2.1 release (and v1.1.1, v1.0.10) — the vendor releases of 21 October 2026 naming the CVE; fix commit b418fa81 in c/dec/decode.c as cited by the Debian and Ubuntu trackers
  • Node.js October 2026 security releases — the description of the decoder fault, fixed versions 22.23.4, 24.22.1 and 26.12.1, severity High, credit (21 October 2026)
  • Distribution trackers: Debian, Ubuntu, Red Hat — status, fixed versions and the system-versus-bundled notes as of 29 November 2026
  • EPSS — 0.99987, 99.99th percentile, scored 28 November 2026

Related reading

This advisory page was assembled from the primary sources listed above on 29 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.