HTTP::Body denial of service in chunked request buffering
HTTP-Body
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| HTTP-Body |
| No fix yet |
Original description
HTTP::Body versions before 1.24_01 for Perl allow memory exhaustion via unbounded buffering of chunked request bodies.
In chunked mode, used when no content length is given, add() holds each chunk in memory until all of it has arrived. A line that is not a chunk-size line, a size line without CRLF, or a size too large to fit an integer leaves the parser waiting forever, and every later add() grows the buffer.
A remote attacker can exhaust memory in applications that pass chunked request bodies to HTTP::Body.
From the CVE record · CPANSec