Skip to content

Bundled Brotli 1.2.0 is affected by CVE-2026-111497 (decoder out-of-bounds write) #579

Closed

Description

@MagicalTux

CVE-2026-111497 is an out-of-bounds write in the Brotli C decoder (c/dec/decode.c, versions 1.0.3 through 1.2.0). A crafted stream can request an impossible block switch, which the decoder mistakes for "needs more input". It then writes past the end of an internal 8-byte buffer. GitHub rates it 9.2 (CVSS 4.0), and Node.js shipped fixes for it on 2026-10-21.

C/brotli bundles Brotli 1.2.0 (as listed in the README, and its decode.h doesn't include the fix). The decoder runs when 7-Zip-zstd opens Brotli-compressed archives or .br files, so opening a crafted file is enough to reach the bug.

Upstream fixed this in Brotli 1.0.10, 1.1.1 and 1.2.1 (fix commit). Updating the bundled copy to v1.2.1, or applying that commit, resolves it. A patched copy is easy to recognise: its decode.h defines BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH (-17).

References:

Activity

  1. stefano2734 commented on Oct 27, 2026

    @stefano2734

    Yes, now a big thing.
    See in German
    Brotli-Decoder-Lücke nicht nur in Node.js, sondern auch in Bun, Python und mehr | heise online

  2. sebres commented on Nov 2, 2026

    @sebres
    Collaborator

    v26.05-v1.5.7-R1 with brotli 1.2.1 is released now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions