CVE-2026-49755
published high CVSS 4.0 · 8.2Decompression bomb DoS in Req via auto-decoded archive and compressed response bodies
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| wojtekmach | — | req0.1.0 to < 0.6.1 · Other versions: unaffected | Affected | Not stated | EEF |
| wojtekmach | — | wojtekmach/reqreq · e37753741cbdc725e6aba3d977b380163bfc0ecb and later (affected · git); changes: unaffected at 84977e5b1a83f26e749d55ad06e3625464af4e8d, unaffected at ea5506fce1d6a44e5f47d0efed314643b3bc4904 · Other versions: unaffected | Version-specific | Not stated | EEF |
Description
Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in wojtekmach Req allows attacker-controlled HTTP servers to exhaust memory in a Req client via decompression-bomb response bodies. Req's default response pipeline includes Req.Steps.decode_body/1 and Req.Steps.decompress_body/1 in lib/req/steps.ex. decode_body/1 dispatches on the server-supplied content-type (or URL extension) and calls :zip.extract(body, [:memory]) for application/zip, :erl_tar.extract({:binary, body}, [:memory]) for application/x-tar, and :erl_tar.extract({:binary, body}, [:memory, :compressed]) for application/gzip / .tgz. Each returns the full decompressed archive contents as a [{name, bytes}] list in memory, with no per-entry or total size cap. decompress_body/1 walks the content-encoding header and chains :zlib/:brotli/:ezstd decoders, so a response advertising content-encoding: gzip, gzip, gzip inflates through multiple layers without bound. Both steps are enabled by default, no caller opt-in is required, and the attacker controls the content-type and content-encoding headers on their own server (or on any host reached via Req's automatic redirect following). A sub-megabyte response can expand to multiple gigabytes on the victim, crashing the BEAM process. This issue affects req: from 0.1.0 before 0.6.1.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| wojtekmach | req | 0.1.0 to < 0.6.1 (affected · semver)Default: unaffected | EEF · cna |
| wojtekmach | req | e37753741cbdc725e6aba3d977b380163bfc0ecb and later (affected · git); changes: unaffected at 84977e5b1a83f26e749d55ad06e3625464af4e8d, unaffected at ea5506fce1d6a44e5f47d0efed314643b3bc4904Default: unaffected | EEF · cna |
Weaknesses
1- CWE-409 CWE-409 Improper Handling of Highly Compressed Data (Data Amplification)
References
6- EEF CNA record for CVE-2026-49755 https://cna.erlef.org/cves/CVE-2026-49755.html
- Fix commit 84977e5 in wojtekmach/req https://github.com/wojtekmach/req/commit/84977e5b1a83f26e749d55ad06e3625464af4e8d
- Introducing commit e377537 in wojtekmach/req https://github.com/wojtekmach/req/commit/e37753741cbdc725e6aba3d977b380163bfc0ecb
- Fix commit ea5506f in wojtekmach/req https://github.com/wojtekmach/req/commit/ea5506fce1d6a44e5f47d0efed314643b3bc4904
- Unbounded archive/compression extraction triggered by response content-type https://github.com/wojtekmach/req/security/advisories/GHSA-655f-mp8p-96gv
- OSV record EEF-CVE-2026-49755 https://osv.dev/vulnerability/EEF-CVE-2026-49755
Provider assertions
2EEF · cna
Decompression bomb DoS in Req via auto-decoded archive and compressed response bodies
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d627d9491f0ddd5e271a927df22219ec3af344a46a59488dba9b309489c9f634
- Ingested
- 20 Nov 2026, 08:51:28 UTC
- Source record
- Official CVE record