CVE-2026-49755 Details
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.
A denial-of-service vulnerability has been identified in the wojtekmach Req HTTP client for Elixir, versions 0.1.0 prior to 0.6.1. This vulnerability arises from improper handling of highly compressed data, allowing attacker-controlled HTTP servers to exhaust memory in a Req client. The issue is triggered by decompression-bomb response bodies, which expand significantly in size and can crash the BEAM process.
Users can disable automatic body decoding by passing 'decode_body: false' to 'Req.new/1' or 'Req.get!/1'. To skip the content-encoding decompression, also pass 'raw: true'. Both options will leave the response body as raw bytes, allowing for a size check before any decompression.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/wojtekmach/req/security/advisories/GHSA-655f-mp8p-96gv | CISA-ADP | ExploitPatchVendor Advisory |
| https://cna.erlef.org/cves/CVE-2026-49755.html | EEF | Third Party Advisory |
| https://github.com/wojtekmach/req/commit/84977e5b1a83f26e749d55ad06e3625464af4e8d | EEF | Patch |
| https://github.com/wojtekmach/req/commit/e37753741cbdc725e6aba3d977b380163bfc0ecb | EEF | |
| https://github.com/wojtekmach/req/commit/ea5506fce1d6a44e5f47d0efed314643b3bc4904 | EEF | |
| https://github.com/wojtekmach/req/security/advisories/GHSA-655f-mp8p-96gv | EEF | ExploitPatchVendor Advisory |
| https://osv.dev/vulnerability/EEF-CVE-2026-49755 | EEF | MitigationPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-409 | Improper Handling of Highly Compressed Data (Data Amplification) | EEF |
Affected Products
| Product | Versions |
|---|---|
| wojtekmach req | >= 0.1.0, < 0.6.1 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 20, 2026 | CVE Modified | EEF |
| Nov 20, 2026 | CVE Modified | CISA-ADP |
| Aug 18, 2026 | Initial Analysis | [email protected] |
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 8, 2026 | CVE Modified | CISA-ADP |
| Jun 8, 2026 | New CVE Received | EEF |