{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-49755",
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "state": "PUBLISHED",
        "assignerShortName": "EEF",
        "dateReserved": "2026-06-01T13:45:22.448Z",
        "datePublished": "2026-06-08T15:20:57.415Z",
        "dateUpdated": "2026-11-20T08:40:40.037Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://repo.hex.pm",
                    "cpes": [
                        "cpe:2.3:a:wojtekmach:req:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "'Elixir.Req.Steps'",
                        "'Elixir.Req'"
                    ],
                    "packageName": "req",
                    "packageURL": "pkg:hex/req",
                    "product": "req",
                    "programFiles": [
                        "lib/req/steps.ex",
                        "lib/req.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.Req.Steps':decode_body/1"
                        },
                        {
                            "name": "'Elixir.Req.Steps':decompress_body/1"
                        },
                        {
                            "name": "'Elixir.Req':decode_body/1"
                        },
                        {
                            "name": "'Elixir.Req':decompress/1"
                        },
                        {
                            "name": "'Elixir.Req':decode/2"
                        },
                        {
                            "name": "'Elixir.Req':decompress/2"
                        }
                    ],
                    "repo": "https://github.com/wojtekmach/req",
                    "vendor": "wojtekmach",
                    "versions": [
                        {
                            "lessThan": "0.6.1",
                            "status": "affected",
                            "version": "0.1.0",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "collectionURL": "https://github.com",
                    "cpes": [
                        "cpe:2.3:a:wojtekmach:req:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "'Elixir.Req.Steps'",
                        "'Elixir.Req'"
                    ],
                    "packageName": "wojtekmach/req",
                    "packageURL": "pkg:github/wojtekmach/req",
                    "product": "req",
                    "programFiles": [
                        "lib/req/steps.ex",
                        "lib/req.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.Req.Steps':decode_body/1"
                        },
                        {
                            "name": "'Elixir.Req.Steps':decompress_body/1"
                        },
                        {
                            "name": "'Elixir.Req':decode_body/1"
                        },
                        {
                            "name": "'Elixir.Req':decompress/1"
                        },
                        {
                            "name": "'Elixir.Req':decode/2"
                        },
                        {
                            "name": "'Elixir.Req':decompress/2"
                        }
                    ],
                    "repo": "https://github.com/wojtekmach/req",
                    "vendor": "wojtekmach",
                    "versions": [
                        {
                            "changes": [
                                {
                                    "at": "84977e5b1a83f26e749d55ad06e3625464af4e8d",
                                    "status": "unaffected"
                                },
                                {
                                    "at": "ea5506fce1d6a44e5f47d0efed314643b3bc4904",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThan": "*",
                            "status": "affected",
                            "version": "e37753741cbdc725e6aba3d977b380163bfc0ecb",
                            "versionType": "git"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "cpeMatch": [
                                {
                                    "criteria": "cpe:2.3:a:wojtekmach:req:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "0.6.1",
                                    "versionStartIncluding": "0.1.0",
                                    "vulnerable": true
                                }
                            ],
                            "negate": false,
                            "operator": "OR"
                        }
                    ],
                    "operator": "AND"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Peter Ullrich"
                },
                {
                    "lang": "en",
                    "type": "analyst",
                    "value": "Jonatan Männchen / EEF"
                },
                {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "Wojtek Mach"
                }
            ],
            "datePublic": "2026-06-08T15:20:57.000Z",
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>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.</p>\n<p>Req's default response pipeline includes <code>Req.Steps.decode_body/1</code> and <code>Req.Steps.decompress_body/1</code> in <code>lib/req/steps.ex</code>. <code>decode_body/1</code> dispatches on the server-supplied <code>content-type</code> (or URL extension) and calls <code>:zip.extract(body, [:memory])</code> for <code>application/zip</code>, <code>:erl_tar.extract({:binary, body}, [:memory])</code> for <code>application/x-tar</code>, and <code>:erl_tar.extract({:binary, body}, [:memory, :compressed])</code> for <code>application/gzip</code> / <code>.tgz</code>. Each returns the full decompressed archive contents as a <code>[{name, bytes}]</code> list in memory, with no per-entry or total size cap. <code>decompress_body/1</code> walks the <code>content-encoding</code> header and chains <code>:zlib</code>/<code>:brotli</code>/<code>:ezstd</code> decoders, so a response advertising <code>content-encoding: gzip, gzip, gzip</code> inflates through multiple layers without bound.</p>\n<p>Both steps are enabled by default, no caller opt-in is required, and the attacker controls the <code>content-type</code> and <code>content-encoding</code> 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.</p>\n<p>This issue affects req: from 0.1.0 before 0.6.1.</p>"
                        },
                        {
                            "base64": false,
                            "type": "text/markdown",
                            "value": "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.\n\nReq'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.\n\nBoth 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.\n\nThis issue affects req: from 0.1.0 before 0.6.1."
                        }
                    ],
                    "value": "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.\n\nReq'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.\n\nBoth 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.\n\nThis issue affects req: from 0.1.0 before 0.6.1."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-197",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-197 Exponential Data Expansion"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "attackVector": "NETWORK",
                        "baseScore": 8.2,
                        "baseSeverity": "HIGH",
                        "privilegesRequired": "NONE",
                        "providerUrgency": "NOT_DEFINED",
                        "subAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "userInteraction": "NONE",
                        "valueDensity": "NOT_DEFINED",
                        "vectorString": "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",
                        "version": "4.0",
                        "vulnAvailabilityImpact": "HIGH",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "NONE",
                        "vulnerabilityResponseEffort": "NOT_DEFINED"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-409",
                            "description": "CWE-409 Improper Handling of Highly Compressed Data (Data Amplification)",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
                "shortName": "EEF",
                "dateUpdated": "2026-11-20T08:40:40.037Z"
            },
            "references": [
                {
                    "name": "Unbounded archive/compression extraction triggered by response content-type",
                    "tags": [
                        "vendor-advisory",
                        "related"
                    ],
                    "url": "https://github.com/wojtekmach/req/security/advisories/GHSA-655f-mp8p-96gv"
                },
                {
                    "name": "EEF CNA record for CVE-2026-49755",
                    "tags": [
                        "related"
                    ],
                    "url": "https://cna.erlef.org/cves/CVE-2026-49755.html"
                },
                {
                    "name": "OSV record EEF-CVE-2026-49755",
                    "tags": [
                        "related"
                    ],
                    "url": "https://osv.dev/vulnerability/EEF-CVE-2026-49755"
                },
                {
                    "name": "Introducing commit e377537 in wojtekmach/req",
                    "tags": [
                        "related"
                    ],
                    "url": "https://github.com/wojtekmach/req/commit/e37753741cbdc725e6aba3d977b380163bfc0ecb"
                },
                {
                    "name": "Fix commit 84977e5 in wojtekmach/req",
                    "tags": [
                        "patch"
                    ],
                    "url": "https://github.com/wojtekmach/req/commit/84977e5b1a83f26e749d55ad06e3625464af4e8d"
                },
                {
                    "name": "Fix commit ea5506f in wojtekmach/req",
                    "tags": [
                        "patch"
                    ],
                    "url": "https://github.com/wojtekmach/req/commit/ea5506fce1d6a44e5f47d0efed314643b3bc4904"
                }
            ],
            "source": {
                "discovery": "EXTERNAL"
            },
            "title": "Decompression bomb DoS in Req via auto-decoded archive and compressed response bodies",
            "workarounds": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>Disable Req's automatic body decoding on requests that fetch attacker-influenced URLs by passing <code>decode_body: false</code> to <code>Req.new/1</code> / <code>Req.get!/1</code>. To also skip the <code>content-encoding</code> decompression pipeline, pass <code>raw: true</code>. Both options leave the response body as the raw on-the-wire bytes, so the caller can size-check before any decompression.</p>"
                        },
                        {
                            "base64": false,
                            "type": "text/markdown",
                            "value": "Disable Req's automatic body decoding on requests that fetch attacker-influenced URLs by passing `decode_body: false` to `Req.new/1` / `Req.get!/1`. To also skip the `content-encoding` decompression pipeline, pass `raw: true`. Both options leave the response body as the raw on-the-wire bytes, so the caller can size-check before any decompression."
                        }
                    ],
                    "value": "Disable Req's automatic body decoding on requests that fetch attacker-influenced URLs by passing decode_body: false to Req.new/1 / Req.get!/1. To also skip the content-encoding decompression pipeline, pass raw: true. Both options leave the response body as the raw on-the-wire bytes, so the caller can size-check before any decompression."
                }
            ]
        },
        "adp": [
            {
                "references": [
                    {
                        "url": "https://github.com/wojtekmach/req/security/advisories/GHSA-655f-mp8p-96gv",
                        "tags": [
                            "exploit"
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-06-08T16:49:57.977214Z",
                                "id": "CVE-2026-49755",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-06-08T16:50:03.277Z"
                }
            }
        ]
    }
}