Repository navigation
Bump brotli from v1.2.0 to v1.2.1 - #127419
Conversation
Update `brotli` to the upstream release `v1.2.1`, which fixes CVE-2026-111497: an out-of-bounds write in the decoder that permits remote code execution. The pin stays on the `ClickHouse/brotli` fork, branch `ClickHouse/v1.2.1` (head `2d9c9b61f4e7`), which is upstream `v1.2.1` plus the single carried ClickHouse patch `disable BROTLI_MODEL macro for some targets` (the loongarch64 fix). The patch rebased onto `v1.2.1` without conflicts, and `.gitmodules` already names the fork, so it is unchanged. Upstream changes in the decoder, all internal to `c/dec/decode.c`: the block-switch helpers now return a `BrotliDecoderErrorCode` instead of a boolean, so a malformed block switch is reported as the new `BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH` (-17, previously reserved) rather than being treated as a truncated stream. The public C API is otherwise unchanged; `BROTLI_VERSION_PATCH` and `BROTLI_ABI_REVISION` move to 1. No ClickHouse-side build adaptation was needed: no source file was added, removed or renamed, and `contrib/brotli-cmake/CMakeLists.txt` still lists exactly the `*.c` files under `c/common`, `c/dec` and `c/enc`. Co-Authored-By: Claude Code <[email protected]>
The malformed stream declares one block type but attempts a block switch. Decode it both at once and one byte at a time, and require the new `BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH` error. The test returns -9 with v1.2.0 and -17 with v1.2.1. Link: ClickHouse#127419 Source: https://github.com/nodejs/node/blob/main/test/parallel/test-zlib-invalid-input.js
|
🕵 Merged
@groeneai, investigate the |
|
I checked this. There is nothing to fix in the public repository, and the private build has already recovered:
The sync for the new head |
|
🕵 Thanks for checking. Agreed: the |
Backport #127419 to 26.10: Bump `brotli` from v1.2.0 to v1.2.1
There was a problem hiding this comment.
Does the brotli library itself not have its own tests already?
Merge backport/26.3/127419 into cherrypick/26.3/127419. The only conflict is the contrib/brotli submodule: 26.3 pins brotli v1.0.9 (d224526f8fa7), while master moved v1.2.0 -> v1.2.1. Take the master pin 2d9c9b61f4e7 (the ClickHouse fork of v1.2.1) and master's contrib/brotli-cmake/CMakeLists.txt source list from #119096 (v1.0.9 -> v1.2.0), without which v1.2.x does not link. src/CMakeLists.txt and the new gtest merge cleanly. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge backport/26.8/127419 into cherrypick/26.8/127419. The only conflict is the contrib/brotli submodule: 26.8 pins brotli v1.0.9 (d224526f8fa7), while master moved v1.2.0 -> v1.2.1. Take the master pin 2d9c9b61f4e7 (the ClickHouse fork of v1.2.1) and master's contrib/brotli-cmake/CMakeLists.txt source list from #119096 (v1.0.9 -> v1.2.0), without which v1.2.x does not link. src/CMakeLists.txt and the new gtest merge cleanly. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Cherry pick #127419 to 26.3: Bump `brotli` from v1.2.0 to v1.2.1
Cherry pick #127419 to 26.8: Bump `brotli` from v1.2.0 to v1.2.1
Cherry pick #127419 to 26.9: Bump `brotli` from v1.2.0 to v1.2.1
Backport #127419 to 26.8: Bump `brotli` from v1.2.0 to v1.2.1
Backport #127419 to 26.9: Bump `brotli` from v1.2.0 to v1.2.1
Backport #127419 to 26.3: Bump `brotli` from v1.2.0 to v1.2.1
Antalya 26.8 Backport of ClickHouse#127810 - Backport ClickHouse#127419 to 26.8: Bump `brotli` from v1.2.0 to v1.2.1
Antalya 26.3 Backport of ClickHouse#127810 - Backport ClickHouse#127419 to 26.8: Bump `brotli` from v1.2.0 to v1.2.1
Antalya 26.6 Backport of ClickHouse#127810 - Backport ClickHouse#127419 to 26.8: Bump `brotli` from v1.2.0 to v1.2.1
Stable 26.3 Backport of ClickHouse#127810 - Backport ClickHouse#127419 to 26.8: Bump `brotli` from v1.2.0 to v1.2.1
Stable 26.8 Backport of ClickHouse#127810 - Backport ClickHouse#127419 to 26.8: Bump `brotli` from v1.2.0 to v1.2.1
(cherry picked from commit 0ffe6b6)
(cherry picked from commit 60233e8)
(cherry picked from commit d9e2eeb)
Bump
brotlifrom v1.2.0 to v1.2.1, a decoder security fix, staying on the ClickHouse fork line.Fork
Carries 1 ClickHouse patch (loongarch64
BROTLI_MODELfix), rebased onto v1.2.1 in ClickHouse/brotli#2.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Update
brotlifrom v1.2.0 to v1.2.1, fixing an out-of-bounds write in the brotli decoder reachable through brotli-compressed input (HTTPContent-Encoding: br,.brfiles, Parquet).Workflow [PR]
Sync PR [sync-upstream/pr/127419]
Version info
26.11.1.749-master(included in26.11and later)26.10.3.6,26.9.26.18,26.8.35.17,26.3.61.13