Skip to content
High 8.2

hackneyに悪意あるHTTPサーバーからメモリを使い果たされる脆弱性

CVE-2026-97200 First seen on SecPulse

Summary

hackneyの2.0.0-beta.1から4.9.0より前のバージョンには、悪意のあるHTTPサーバーへの接続で応答本文が上限なく読み込まれ、圧縮の展開でクライアントのメモリを使い果たされるおそれのある脆弱性があります。修正版の4.9.0が公開されています。利用中のhackneyは4.9.0以降に更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

hackneyの2.0.0-beta.1から4.9.0より前のバージョンには、悪意のあるHTTPサーバーへの接続で応答本文が上限なく読み込まれ、圧縮の展開でクライアントのメモリを使い果たされるおそれのある脆弱性があります。修正版の4.9.0が公開されています。利用中のhackneyは4.9.0以降に更新してください。

Affected packages

PackageAffected → Fixed
benoitchackney
≥ dc41b79339ca0c41e16d3f2dd17172bc2de855d6, < 493e8bf83a391548e5101792276ab3fc428fa76c→ 493e8bf83a391548e5101792276ab3fc428fa76c
Hexhackney
≥ 2.0.0-beta.1, < 4.9.0→ 4.9.0
Original description The description as published by the source.

Summary

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.

Details

1. Unbounded accumulation. hackney:request/5 with a body, and hackney:body/1 after start_response/1, read the response in src/hackney_conn.erl through read_full_body/2, which appends each chunk to a binary accumulator until the body ends. The HTTP/2 and HTTP/3 synchronous paths accumulate stream data the same way. No option caps the size.

2. One-step decompression. With {auto_decompress, true} hackney sends Accept-Encoding: gzip, deflate. Once the body is complete, maybe_decompress_body/2 dispatches on Content-Encoding to decompress_gzip/1 (zlib:gunzip/1) or decompress_deflate/1 (zlib:inflate/2). Both return the whole output at once, so the inflated size is bounded only by the compression ratio. The report…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details