Skip to content
NewA calmer, faster ZeroHour

CVE-2026-124290

CPU exhaustion in Perl Net::Server through 2.018

CVSS
—
EPSS
—
Published
·
Modified
Analyze CVE-2026-124290 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

Net::Server through 2.018 can burn a full CPU core in read_until after a peer closes the connection, because the loop never checks read() and keeps reading one byte at a time. A remote client can trigger this without authentication. On Net::Server::HTTP, closing before headers finish pins a worker until timeout_header (15 seconds by default); repeated connections can occupy every worker. Other read_until callers without their own timeout spin indefinitely. TCP, UNIX, SSL, and Net::Server::INET share the loop; SSLEAY does not.

What to do: No fixed version is stated for Net::Server through 2.018. The SSLEAY protocol class does not use this loop.

ProductAffected
Net::Serverthrough 2.018
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

Net::Server versions through 2.018 for Perl allow CPU exhaustion via a read_until loop that keeps reading after the client disconnects. read_until 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 read_until, so a client that connects and closes before ending its headers holds a worker at full CPU until timeout_header (15 seconds by default) fires. A stream of such short-lived connections keeps every worker busy. Other callers of read_until without their own timeout spin indefinitely.

Weakness
CWE-835

In the news

1 story