CPU exhaustion in Net::Server for Perl via read_until loop
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Net-Server | up to 2.018 | — | No fix listed | CNA |
- 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
- 2026-11-29 Threatist record created from CVE-2026-124290
- 2026-11-30 Alias added: GHSA-4j58-prfg-2fq9
References
Sources
- CVE-2026-124290 · CVE Program
- CVE-2026-124290 · NVD
- FIRST EPSS
- GHSA-4j58-prfg-2fq9 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences