# CVE-2026-49755: Decompression bomb DoS in Req via auto-decoded archive and compressed response bodies

- Severity: High 8.2 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-08T15:20:57.415Z
- Modified: 2026-11-26T17:23:03.290Z
- Also known as: GHSA-655f-mp8p-96gv, EEF-CVE-2026-49755
- Weaknesses: CWE-409
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- req: from 0.1.0 before 0.6.1
- wojtekmach/req: from e37753741cbdc725e6aba3d977b380163bfc0ecb before *
- req (Hex): from 0.1.0 before 0.6.1
- https://github.com/wojtekmach/req: from e37753741cbdc725e6aba3d977b380163bfc0ecb before 84977e5b1a83f26e749d55ad06e3625464af4e8d; before ea5506fce1d6a44e5f47d0efed314643b3bc4904
- wojtekmach req: from 0.1.0 before 0.6.1

## Every score

- EEF: CVSS:4.0 8.2 High `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`
- GitHub: CVSS:4.0 High `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/wojtekmach/req/security/advisories/GHSA-655f-mp8p-96gv> (exploit, advisory, patch, related, vendor-advisory, web)
- <https://cna.erlef.org/cves/CVE-2026-49755.html> (related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-49755> (mitigation, patch, related, third-party-advisory, web)
- <https://github.com/wojtekmach/req/commit/e37753741cbdc725e6aba3d977b380163bfc0ecb> (related, web)
- <https://github.com/wojtekmach/req/commit/84977e5b1a83f26e749d55ad06e3625464af4e8d> (fix, patch, web)
- <https://github.com/wojtekmach/req/commit/ea5506fce1d6a44e5f47d0efed314643b3bc4904> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49755> (advisory)
- <https://github.com/wojtekmach/req> (package)
- <https://hex.pm/packages/req> (package)

## Sources

- CVE List: [CVE-2026-49755](https://www.cve.org/CVERecord?id=CVE-2026-49755), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-655f-mp8p-96gv](https://github.com/advisories/GHSA-655f-mp8p-96gv), CC-BY-4.0, modified 2026-07-29
- Erlang Ecosystem Foundation: [EEF-CVE-2026-49755](https://osv.dev/vulnerability/EEF-CVE-2026-49755), CC-BY-4.0, modified 2026-11-26
- NVD: [CVE-2026-49755](https://nvd.nist.gov/vuln/detail/CVE-2026-49755), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-49755 · Whole record: https://cve.day/CVE-2026-49755.json · Rebuilt by cve.day 2026-11-26T17:37:04.770Z
