{"id":"CVE-2026-97200","published":"2026-10-26T13:49:40Z","modified":"2026-11-19T08:06:25Z","title":"Unbounded response body buffering and decompression in hackney","vendor":"benoitc","product":"hackney","tier":"tail","description":{"text":"Allocation of Resources Without Limits or Throttling vulnerability in hackney_conn in benoitc hackney allows a malicious HTTP server to exhaust client memory via an oversized or highly compressed response body. hackney:request/5 and hackney:body/1 return the whole response body, and nothing bounds how much the connection process buffers. Any server the client requests can trigger it.\n\nhackney_conn:read_full_body/2 and the HTTP/2 and HTTP/3 accumulators append every chunk until the body ends. With {auto_decompress, true} the buffered body is then inflated in one step with zlib:gunzip/1 or zlib:inflate/2, which return the whole output at once.\n\nThis issue affects hackney: from 2.0.0-beta.1 before 4.9.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00564,"percentile":0.47773,"provenance":"source"},"cwes":[{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/benoitc/hackney/releases/tag/4.9.0","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-97200.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-97200","tags":["related"]},{"url":"https://github.com/benoitc/hackney/pull/980","tags":["related"]},{"url":"https://github.com/benoitc/hackney/commit/dc41b79339ca0c41e16d3f2dd17172bc2de855d6","tags":["related"]},{"url":"https://github.com/benoitc/hackney/commit/493e8bf83a391548e5101792276ab3fc428fa76c","tags":["patch"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":9.55},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"benoitc","affectedVersions":[{"vendor":"benoitc","product":"hackney","versions":[">= 2.0.0-beta.1, < 4.9.0"]},{"vendor":"benoitc","product":"hackney","versions":[">= dc41b79339ca0c41e16d3f2dd17172bc2de855d6, < 493e8bf83a391548e5101792276ab3fc428fa76c"]}],"workarounds":{"items":["Leave auto_decompress disabled (the default). Without it hackney_conn:maybe_decompress_body/2 never inflates the body, which closes the amplification half. The uncapped raw body read has no workaround."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-130","name":"A server the client requests can make the client allocate memory proportional to the body it sends, or to its decompressed size, until the node runs out of memory."}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-26T14:54:57.385457Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-109837","exploited":false,"provenance":"source"}}