{"id":"EEF-CVE-2026-56810","summary":"mint buffers an entire chunked response chunk in memory in Mint.HTTP1.decode_body/5","details":"## Summary\n\nAllocation of Resources Without Limits or Throttling vulnerability in elixir-mint mint (`Mint.HTTP1` module) allows a denial of service via an oversized `chunked` transfer-encoded response.\n\nThis vulnerability is associated with program files `lib/mint/http1.ex` and program routines `Mint.HTTP1.decode_body/5`, `Mint.HTTP1.add_body_to_buffer/2`.\n\nWhen Mint decodes a `chunked` HTTP response body, it accumulates each partial fragment of the current chunk in the connection's `data_buffer` (an unbounded iolist) via `add_body_to_buffer/2` and does not emit the data to the caller until the full declared chunk length has been received. The chunk size is taken directly from the server and parsed with no upper bound, so a malicious or compromised server can announce one enormous chunk (for example a size line of `7FFFFFFF`, about 2 GiB) and then send the body bytes slowly without ever completing the chunk. The client buffers every received byte while it waits for a completion that never arrives, and because no data responses are produced until the chunk finishes, a caller that otherwise streams large `content-length` bodies safely gains no protection. An unauthenticated remote server (reachable whenever a client follows redirects, fetches user-supplied URLs, or processes webhooks) can drive the client's memory arbitrarily high and trigger an out-of-memory condition.\n\nThis issue affects mint: from 0.5.0 before 1.9.1.","aliases":["CVE-2026-56810","GHSA-c59h-fq4p-r36r"],"modified":"2026-11-25T06:30:11.579327457Z","published":"2026-07-06T09:17:17.429Z","database_specific":{"capec_ids":["CAPEC-130"],"cpe_ids":["cpe:2.3:a:elixir-mint:mint:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-770"],"$schema":"https://cna.erlef.org/schemas/osv/record-0.1.0.json"},"references":[{"type":"ADVISORY","url":"https://github.com/elixir-mint/mint/security/advisories/GHSA-c59h-fq4p-r36r"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-56810.html"},{"type":"WEB","url":"https://github.com/elixir-mint/mint/commit/c575d819d39ebf7e9b77ec24584a5ffbb11c844e"},{"type":"FIX","url":"https://github.com/elixir-mint/mint/commit/193ce714907d16e8adc4ab3c40e4f0c2f045b2a6"},{"type":"PACKAGE","url":"https://hex.pm/packages/mint"}],"affected":[{"package":{"name":"mint","ecosystem":"Hex","purl":"pkg:hex/mint"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.5.0"},{"fixed":"1.9.1"}]}],"versions":["0.5.0","1.0.0","1.1.0","1.2.0","1.2.1","1.3.0","1.4.0","1.4.1","1.4.2","1.5.0","1.5.1","1.5.2","1.6.0","1.6.1","1.6.2","1.7.0","1.7.1","1.8.0","1.9.0"],"ecosystem_specific":{"program_routines":["'Elixir.Mint.HTTP1':decode_body/5","'Elixir.Mint.HTTP1':add_body_to_buffer/2"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.Mint.HTTP1'"],"program_files":["lib/mint/http1.ex"]},"database_specific":{"program_files":["lib/mint/http1.ex"],"program_routines":["'Elixir.Mint.HTTP1':decode_body/5","'Elixir.Mint.HTTP1':add_body_to_buffer/2"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","source":"https://cna.erlef.org/osv/EEF-CVE-2026-56810.json","modules":["'Elixir.Mint.HTTP1'"]}},{"ranges":[{"type":"GIT","repo":"https://github.com/elixir-mint/mint","events":[{"introduced":"c575d819d39ebf7e9b77ec24584a5ffbb11c844e"},{"fixed":"193ce714907d16e8adc4ab3c40e4f0c2f045b2a6"}]}],"versions":["v1.9.0","v1.8.0","v1.7.1","v1.7.0","v1.6.2","v1.6.1","v1.6.0","v1.5.2","v1.5.1","v1.5.0","v1.4.2","v1.4.1","v1.4.0","v1.3.0","v1.2.1","v1.2.0","v1.1.0","v1.0.0","v0.5.0"],"database_specific":{"modules":["'Elixir.Mint.HTTP1'"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-56810.json","program_files":["lib/mint/http1.ex"],"program_routines":["'Elixir.Mint.HTTP1':decode_body/5","'Elixir.Mint.HTTP1':add_body_to_buffer/2"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","source":"CNA"}],"credits":[{"name":"Peter Ullrich","type":"FINDER"},{"name":"Eric Meadows-Jönsson","type":"ANALYST"},{"name":"Jonatan Männchen / EEF","type":"ANALYST"},{"name":"Andrea Leopardi","type":"REMEDIATION_DEVELOPER"}]}