Reactphp http
react/http: A malformed HTTP chunked body can lead to a denial-of-service and peg the CPU
react/http is an event-driven, streaming HTTP client and server implementation for ReactPHP. From 0.6.0 until 1.11.1, React\Http\Io\ChunkedDecoder could enter an infinite loop while processing a malformed Transfer-Encoding: chunked body because handleData required its buffer to shrink on every iteration. An incomplete terminal-chunk trailer without CRLF left the buffer unchanged after strpos returned false, and exactly two non-CRLF bytes after a completed non-terminal chunk bypassed both the error and wait guards. The affected decoder processes request bodies for React\Http\HttpServer and response bodies for React\Http\Browser, allowing a malicious client to freeze a server or a malicious or compromised server to freeze a client. A reverse proxy that normalizes inbound requests may protect the server direction but does not protect outbound Browser requests. This issue is fixed in version 1.11.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.6.0, < 1.11.1
Fixed in 1.11.1
Mitigation
Upgrade http to 1.11.1 or later.
References
- Vendor advisory github.com/reactphp/http/security/advisories/G…
- Patch github.com/reactphp/http/commit/b6d4688790adf3…
- Release notes github.com/reactphp/http/releases/tag/v1.11.1
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.