CVE-2026-124290: Net::Server versions through 2.018 for Perl allow CPU exhaustion via a read_until loop that keeps reading after the client disconnects
Net::Server versions through 2.018 for Perl allow CPU exhaustion via a readuntil loop that keeps reading after the client disconnects.
readuntil reads one byte per iteration and leaves the loop only once it has the requested number of bytes or a match for the end pattern. Nothing checks the return value of read(), so once the peer has closed the connection every read returns 0 and the loop spins at full CPU. The TCP, UNIX and SSL protocol classes and Net::Server::INET share this loop. The SSLEAY protocol class is not affected.
Net::Server::HTTP reads every request header through readuntil, so a client that connects and closes before ending its headers holds a worker at full CPU until timeoutheader (15 seconds by default) fires. A stream of such short-lived connections keeps every worker busy. Other callers of readuntil without their own timeout spin indefinitely.
Affected Software
Event History
Frequently Asked Questions
Which protocol implementations are affected?
The shared loop affects the TCP, UNIX, and SSL protocol classes, as well as Net::Server::INET. The SSLEAY protocol class is not affected.
What does an attacker need to do to consume HTTP workers?
A client needs to connect and close the connection before completing the request headers. Repeating this with a stream of short-lived connections can keep every worker busy.
Are default Net::Server::HTTP deployments exposed for a limited period?
Yes. Net::Server::HTTP reads request headers through the affected routine, and a disconnected client can keep a worker at full CPU until timeout_header fires, which defaults to 15 seconds.
Which uses have the most severe persistence risk?
Other callers of read_until that do not implement their own timeout can spin indefinitely after the peer disconnects. HTTP has timeout_header behavior, but callers without a timeout do not have that described limit.