CVE-2026-124304: Net::Server::Proto::SSLEAY versions through 2.018 for Perl allow a remote client to hold a server process at full CPU by disconnecting, via a getline that returns an empty string instead of undef at end of stream
Robert Rothenberg 29 Nov 2026 23:42 UTC
========================================================================
CVE-2026-124304 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124304
Distribution: Net-Server
Versions: through 2.018
MetaCPAN: https://metacpan.org/dist/Net-Server
VCS Repo: https://github.com/rhandom/perl-net-server
Net::Server::Proto::SSLEAY versions through 2.018 for Perl allow a
remote client to hold a server process at full CPU by disconnecting,
via a getline that returns an empty string instead of undef at end of
stream
Description
-----------
Net::Server::Proto::SSLEAY versions through 2.018 for Perl allow a
remote client to hold a server process at full CPU by disconnecting,
via a getline that returns an empty string instead of undef at end of
stream.
getline ignores the failure status of the underlying read, so once the
peer has closed the connection every call returns a defined empty
string. STDIN is tied to the client, so a handler that reads with while
(<STDIN>), as the default process_request does, never sees end of file
and loops without blocking. The default handler re-arms its 30-second
alarm on every pass, so the alarm never fires.
A client that completes a TLS handshake and disconnects keeps one
server process busy indefinitely, and repeating this takes every
process.
Problem types
-------------
- CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, terminate TLS in a reverse proxy and run the
server on proto tcp.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/Proto/SSLEAY.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124304-r1.patch