{"id":"CVE-2026-58229","state":"PUBLISHED","title":"Unbounded HTTP/1 response-header and chunked-trailer accumulation in Mint causes memory-exhaustion DoS","description":"Allocation of resources without limits vulnerability in elixir-mint mint allows a remote HTTP server to exhaust memory on the client host and cause a denial of service.\n\nThe Mint.HTTP1.decode_headers/5 and Mint.HTTP1.decode_trailer_headers/4 functions in lib/mint/http1.ex accumulate every parsed response header and chunked-trailer field into a per-request list that persists across incoming TCP segments as request.headers_buffer, and only clear it when the terminating blank line is received. The section has no cap on the number of headers or on total bytes, and the underlying :erlang.decode_packet(:httph_bin, binary, []) parser is invoked with an empty option list so its per-line and per-packet size limits also default to unlimited.\n\nA malicious HTTP server (reachable directly, via an attacker-controlled redirect, via SSRF, or via a man-in-the-middle) can stream complete header lines (or, after a chunked body, complete trailer lines) indefinitely without ever emitting the terminating blank line. The connection state grows without bound until the BEAM node is killed by the operating system's out-of-memory handler, taking down the entire application that uses Mint as an HTTP client.\n\nThis issue affects mint: from 0.1.0 before 1.9.2.","publishedAt":"2026-07-14T08:36:54.616Z","updatedAt":"2026-07-14T15:07:57.359Z","severity":{"score":8.2,"label":"High","version":"4.0","vector":"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","source":"EEF"},"assigner":"EEF","products":["elixir-mint mint"],"affected":[{"vendor":"elixir-mint","product":"mint","packageName":"mint","packageURL":"pkg:hex/mint","defaultStatus":"unaffected","versions":[{"version":"0.1.0","status":"affected","lessThan":"1.9.2","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:elixir-mint:mint:*:*:*:*:*:*:*:*"],"modules":["'Elixir.Mint.HTTP1'"],"programFiles":["lib/mint/http1.ex"],"programRoutines":[{"name":"'Elixir.Mint.HTTP1':decode_headers/5"},{"name":"'Elixir.Mint.HTTP1':decode_trailer_headers/4"}],"repo":"https://github.com/elixir-mint/mint"},{"vendor":"elixir-mint","product":"mint","packageName":"elixir-mint/mint","packageURL":"pkg:github/elixir-mint/mint","defaultStatus":"unaffected","versions":[{"version":"3e6de4bac4821b0eb4d6109e8b1f3fb6458792c8","status":"affected","lessThan":"566d702e6f29105f77522ca7aabb9f64f2f4e333","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:elixir-mint:mint:*:*:*:*:*:*:*:*"],"modules":["'Elixir.Mint.HTTP1'"],"programFiles":["lib/mint/http1.ex"],"programRoutines":[{"name":"'Elixir.Mint.HTTP1':decode_headers/5"},{"name":"'Elixir.Mint.HTTP1':decode_trailer_headers/4"}],"repo":"https://github.com/elixir-mint/mint"}],"references":["https://github.com/elixir-mint/mint/security/advisories/GHSA-qrfr-wh4c-3qhw","https://cna.erlef.org/cves/CVE-2026-58229.html","https://osv.dev/vulnerability/EEF-CVE-2026-58229","https://github.com/elixir-mint/mint/commit/566d702e6f29105f77522ca7aabb9f64f2f4e333"],"weaknesses":["CWE-770"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/58xxx/CVE-2026-58229.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-58229","state":"PUBLISHED","datePublished":"2026-07-14T08:36:54.616Z","dateUpdated":"2026-07-14T15:07:57.359Z","assignerShortName":"EEF","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateReserved":"2026-06-29T18:54:08.633Z"},"containers":{"cna":{"title":"Unbounded HTTP/1 response-header and chunked-trailer accumulation in Mint causes memory-exhaustion DoS","descriptions":[{"lang":"en","value":"Allocation of resources without limits vulnerability in elixir-mint mint allows a remote HTTP server to exhaust memory on the client host and cause a denial of service.\n\nThe Mint.HTTP1.decode_headers/5 and Mint.HTTP1.decode_trailer_headers/4 functions in lib/mint/http1.ex accumulate every parsed response header and chunked-trailer field into a per-request list that persists across incoming TCP segments as request.headers_buffer, and only clear it when the terminating blank line is received. The section has no cap on the number of headers or on total bytes, and the underlying :erlang.decode_packet(:httph_bin, binary, []) parser is invoked with an empty option list so its per-line and per-packet size limits also default to unlimited.\n\nA malicious HTTP server (reachable directly, via an attacker-controlled redirect, via SSRF, or via a man-in-the-middle) can stream complete header lines (or, after a chunked body, complete trailer lines) indefinitely without ever emitting the terminating blank line. The connection state grows without bound until the BEAM node is killed by the operating system's out-of-memory handler, taking down the entire application that uses Mint as an HTTP client.\n\nThis issue affects mint: from 0.1.0 before 1.9.2."}],"affected":[{"vendor":"elixir-mint","product":"mint","packageName":"mint","packageURL":"pkg:hex/mint","defaultStatus":"unaffected","versions":[{"version":"0.1.0","status":"affected","lessThan":"1.9.2","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:elixir-mint:mint:*:*:*:*:*:*:*:*"],"modules":["'Elixir.Mint.HTTP1'"],"programFiles":["lib/mint/http1.ex"],"programRoutines":[{"name":"'Elixir.Mint.HTTP1':decode_headers/5"},{"name":"'Elixir.Mint.HTTP1':decode_trailer_headers/4"}],"repo":"https://github.com/elixir-mint/mint"},{"vendor":"elixir-mint","product":"mint","packageName":"elixir-mint/mint","packageURL":"pkg:github/elixir-mint/mint","defaultStatus":"unaffected","versions":[{"version":"3e6de4bac4821b0eb4d6109e8b1f3fb6458792c8","status":"affected","lessThan":"566d702e6f29105f77522ca7aabb9f64f2f4e333","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:elixir-mint:mint:*:*:*:*:*:*:*:*"],"modules":["'Elixir.Mint.HTTP1'"],"programFiles":["lib/mint/http1.ex"],"programRoutines":[{"name":"'Elixir.Mint.HTTP1':decode_headers/5"},{"name":"'Elixir.Mint.HTTP1':decode_trailer_headers/4"}],"repo":"https://github.com/elixir-mint/mint"}],"references":[{"url":"https://github.com/elixir-mint/mint/security/advisories/GHSA-qrfr-wh4c-3qhw","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-58229.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-58229","tags":["related"]},{"url":"https://github.com/elixir-mint/mint/commit/566d702e6f29105f77522ca7aabb9f64f2f4e333","tags":["patch"]}],"metrics":[{"cvssV4_0":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":8.2,"baseSeverity":"HIGH","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","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"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-770","description":"CWE-770 Allocation of Resources Without Limits or Throttling","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"EEF","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateUpdated":"2026-07-14T15:07:57.359Z"},"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:elixir-mint:mint:*:*:*:*:*:*:*:*","versionEndExcluding":"1.9.2","versionStartIncluding":"0.1.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"zx (Jace)"},{"lang":"en","type":"remediation developer","value":"Andrea Leopardi"},{"lang":"en","type":"remediation reviewer","value":"Eric Meadows-Jönsson"},{"lang":"en","type":"analyst","value":"Jonatan Männchen / EEF"}],"impacts":[{"capecId":"CAPEC-130","descriptions":[{"lang":"en","value":"CAPEC-130 Excessive Allocation"}]}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"cvelib 1.8.0"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/elixir-mint/mint/security/advisories/GHSA-qrfr-wh4c-3qhw","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-14T12:27:10.055823Z","id":"CVE-2026-58229","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-14T12:27:15.737Z"}}]}}}