CVE-2026-142097: Swoole before 6.1.14 and 6.2.x before 6.2.7 Out-of-Bounds Read via Coroutine HTTP Server
Swoole before 6.1.14 and 6.2.x before 6.2.7 contains an out-of-bounds read in onAccept() of swoolehttpservercoro.cc that mishandles requests prefixed with CRLFCRLF. Remote unauthenticated attackers can make getContent() return up to 64 KB of heap memory, leaking other connections' Authorization and Cookie headers or crashing the server.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Swooleto a version that resolves this vulnerability.Fixed in 6.1.14 - Upgrade
Upgrade
Swooleto a version that resolves this vulnerability.Fixed in 6.2.7
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Swoole versions earlier than 6.1.14, and 6.2.x versions earlier than 6.2.7, are affected when using the coroutine HTTP server code path.
What does an attacker need to exploit it?
An attacker can exploit the issue remotely without authentication or user interaction by sending an HTTP request prefixed with CRLFCRLF.
What information could be exposed?
The affected getContent() behavior can return up to 64 KB of heap memory. This may disclose data from other connections, including Authorization and Cookie headers.
Can exploitation affect availability as well as confidentiality?
Yes. In addition to leaking heap memory, the malformed request can crash the server.