CVE-2026-97200Unbounded response body buffering and decompression in hackney
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. hackney_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. This issue affects hackney: from 2.0.0-beta.1 before 4.9.0.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- benoitc hackney: affected: 2.0.0-beta.1 to before 4.9.0; fixed in
4.9.0 - benoitc hackney: affected: dc41b79339ca0c41e16d3f2dd17172bc2de855d6 to before 493e8bf83a391548e5101792276ab3fc428fa76c; fixed in
493e8bf83a391548e5101792276ab3fc428fa76c
Workaround: 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.
Vendor advisories:
- https://github.com/benoitc/hackney/releases/tag/4.9.0 (vendor-advisory)
- https://github.com/benoitc/hackney/commit/493e8bf83a391548e5101792276ab3fc428fa76c (patch)
References
- https://github.com/benoitc/hackney/releases/tag/4.9.0
- https://cna.erlef.org/cves/CVE-2026-97200.html
- https://osv.dev/vulnerability/EEF-CVE-2026-97200
- https://github.com/benoitc/hackney/pull/980
- https://github.com/benoitc/hackney/commit/dc41b79339ca0c41e16d3f2dd17172bc2de855d6
- https://github.com/benoitc/hackney/commit/493e8bf83a391548e5101792276ab3fc428fa76c
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.