EEF-CVE-2026-111497

Source
https://cna.erlef.org/osv/EEF-CVE-2026-111497.html
Import Source
https://cna.erlef.org/osv/EEF-CVE-2026-111497.json
JSON Data
https://api.osv.dev/v1/vulns/EEF-CVE-2026-111497
Upstream
Published
2026-10-22T13:35:41Z
Modified
2026-11-05T20:15:03Z
Severity
  • 8.6 (High) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Out-of-bounds write in the Brotli decoder bundled with erl-brotli
Details

Summary

Out-of-bounds Write vulnerability in the bundled Brotli decoder in yjh0502 erl-brotli allows an attacker who supplies a crafted Brotli-compressed stream to brotli:decode/1 to corrupt decoder state memory, disclose memory contents, crash the Erlang VM, or potentially execute code.

erl-brotli compiles its own copy of the Google Brotli C sources under c_src into a NIF, and brotli_decoder_decompress_stream in c_src/brotli_nif.c hands the input to BrotliDecoderDecompressStream. In c_src/dec/decode.c, DecodeBlockTypeAndLength returns false for a block switch in a category with at most one block type, and the non-streaming callers DecodeLiteralBlockSwitch, DecodeCommandBlockSwitch and DecodeDistanceBlockSwitch discard that result, so decoding continues with inconsistent state. The decoder runs inside a NIF, so memory corruption or a crash takes down the whole VM rather than the calling process. Because the package carries its own copy of the library, the Brotli version installed on the host does not matter.

This issue affects brotli: from 0.3.0 before 0.3.4.

Impact

An attacker who can get an application to decode a Brotli stream they control, for example an HTTP client that decompresses Content-Encoding: br responses with this package, can crash the Erlang VM and potentially run code inside it.

Database specific
{
    "capec_ids": [
        "CAPEC-100"
    ],
    "cpe_ids": [
        "cpe:2.3:a:yjh0502:erl-brotli:*:*:*:*:*:*:*:*"
    ],
    "cwe_ids": [
        "CWE-787"
    ]
}
References
Credits
    • liamwhite - REPORTER
    • Łukasz Jan Niemier - REMEDIATION_DEVELOPER
    • Łukasz Jan Niemier - REPORTER
    • Jonatan Männchen / EEF - COORDINATOR

Affected packages

Hex / brotli

Package

Name
brotli
Purl
pkg:hex/brotli

Affected ranges

Type
SEMVER
Events
Introduced
0.3.0
Fixed
0.3.4

Affected versions

0.*
0.3.0
0.3.1
0.3.2
0.3.3

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-111497.json"

Git / github.com/yjh0502/erl-brotli

Affected ranges

Type
GIT
Repo
https://github.com/yjh0502/erl-brotli
Events

Affected versions

v0.*
v0.3.0
v0.3.2

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-111497.json"