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

Published Nov 29, 2026
·
Updated

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

1 affected component
cpan/Net::Server<=2.018

Event History

Nov 29, 2026
CVE Published
via MITRE·11:28 PM
Data Sourced
via MITRE·11:28 PM
DescriptionWeakness
Nov 30, 2026
Data Sourced
via NVD·12:17 AM
DescriptionWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203