Read the docs

CPU exhaustion in Net::Server for Perl via read_until loop

Priority LOW 23CWE-835Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Denial of service
Confidentiality · integrity · availability
—
Fix status
No fix listed

No CVSS vector from any source. Fix status from CNA. Impact type from CWE-835.

Summary

Net::Server for Perl through version 2.018 allows CPU exhaustion because its read_until loop keeps reading after the client disconnects. The loop does not check the return value of read(), so once the peer closes the connection the loop spins at full CPU (CWE-835). The TCP, UNIX and SSL protocol classes and Net::Server::INET share this loop, while the SSLEAY protocol class is not affected. Net::Server::HTTP reads every request header through read_until, so a client that connects and closes early holds a worker at full CPU until timeout_header (15 seconds by default) fires, and a stream of such connections keeps every worker busy.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

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.

Why it matters now

EPSS 0.00299 14th percentileScored 2026-11-30
Fix No fix listed No fixed version in the sources yet

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—Net-Serverup to 2.018—No fix listedCNA
  • Net-Server Vendor— Affected up to 2.018 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for Net-Server.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Timeline

  1. 2026-11-29 Threatist record created from CVE-2026-124290
  2. 2026-11-30 Alias added: GHSA-4j58-prfg-2fq9

References

Sources