CVE-2026-84997: Reactphp Http Chunked Decoder Infinite Loop

Chunked transfer decoder uses `strlen(...) > 2` instead of `>= 2` to validate trailing CRLF after chunk data. If exactly two non-CRLF bytes follow a chunk, both the error guard (`> 2`) and wait guard (`< 2`) are bypassed, causing an infinite loop and denial of service (CVE-2026-84997, CWE-835).

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-84997-reactphp-http-chunked-decoder-infinite-loop --engine opengrep

Description

Chunked transfer decoder uses `strlen(...) > 2` instead of `>= 2` to validate trailing CRLF after chunk data. If exactly two non-CRLF bytes follow a chunk, both the error guard (`> 2`) and wait guard (`< 2`) are bypassed, causing an infinite loop and denial of service (CVE-2026-84997, CWE-835).