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
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 processrequest 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.
Affected Software
Event History
Frequently Asked Questions
What configuration is affected?
The affected behavior is in Net::Server::Proto::SSLEAY through version 2.018 when handling TLS client connections. The default process_request handler is affected because it reads from tied STDIN with while (<STDIN>).
What must an attacker do to trigger the denial of service?
An attacker must complete a TLS handshake and then disconnect. After the peer closes the connection, getline repeatedly returns a defined empty string rather than EOF, causing the server handler loop to consume CPU.
How severe can repeated exploitation be?
One disconnecting TLS client can keep a server process busy indefinitely at full CPU. Repeating the behavior can consume every available server process.
Will the default 30-second alarm stop the stuck process?
No. The default handler re-arms its 30-second alarm on each loop iteration, so the alarm does not fire while the empty-string read loop continues.
What can be done if an update cannot be applied immediately?
The provided data identifies a patch for Net-Server 2.018. No alternative mitigation is specified; prioritize applying the referenced patch and limiting exposure to untrusted TLS clients where possible.