CVE-2026-124304 in Net::Server::Proto::SSLEAYinfo

Summary

by MITRE • 11/30/2026

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/30/2026

The vulnerability in Net::Server::Proto::SSLEAY versions through 2.018 for Perl represents a significant denial of service risk rooted in improper handling of stream termination during TLS connections. The core technical flaw lies within the getline function, which fails to distinguish between an empty string resulting from valid data processing and the end-of-file condition signaled by undef when the underlying read operation encounters a closed connection or error state. In standard Perl I/O operations, reaching the end of a file descriptor typically results in returning undef, allowing loops such as while (<STDIN>) to terminate correctly. However, because this module returns an empty string instead of undef upon disconnection, the loop condition remains true indefinitely. This behavior is exacerbated by the fact that STDIN is tied directly to the client socket, meaning the server process interprets every subsequent read attempt as a successful retrieval of zero-length data rather than a signal to close the connection and free resources.

This logic error leads to an infinite non-blocking loop within the default process_request handler. As long as the peer has disconnected but the file descriptor remains open in a state that returns empty strings, the server continues to execute the read operation repeatedly without blocking or yielding control effectively enough to trigger timeout mechanisms. The Net::Server framework relies on alarm signals to enforce timeouts for client connections, typically set to thirty seconds by default. However, because the loop never exits due to the incorrect EOF detection, the handler continuously re-arms this thirty-second alarm on every iteration. Consequently, the timer is perpetually reset before it can expire, preventing any timeout-based cleanup or process termination from occurring. This results in a single malicious client capable of holding one server worker process at full CPU utilization indefinitely by simply completing the TLS handshake and then disconnecting.

The operational impact of this vulnerability is severe, particularly for high-traffic servers that utilize preforked or threaded models where each connection consumes a dedicated process or thread. A remote attacker can exploit this flaw to perform a resource exhaustion attack with minimal effort. By repeatedly initiating connections and triggering the disconnection state described above, an adversary can systematically occupy all available worker processes on the server. Once every process is tied up in these infinite loops handling empty reads, legitimate users are unable to establish new connections or receive responses, effectively rendering the service unavailable. This constitutes a classic denial of service scenario where computational resources and connection slots are consumed without any meaningful data exchange occurring after the initial handshake.

From a classification perspective, this vulnerability aligns with CWE-400, which covers uncontrolled resource consumption, specifically in the context of infinite loops leading to CPU exhaustion. It also maps to MITRE ATT&CK technique T1499, Endpoint Denial of Service, as it involves overwhelming system resources to degrade service availability. Mitigation strategies should prioritize upgrading Net::Server and its SSL protocol modules to versions that correctly handle EOF conditions by returning undef when the stream is closed or an error occurs during read operations. Developers implementing custom handlers must ensure they check for both definedness and non-empty status of returned data before processing, thereby preventing infinite loops on disconnected sockets. Additionally, enforcing strict connection timeouts at a lower level in the SSL layer or using select/poll with explicit timeout values can provide defense-in-depth against such resource exhaustion attacks until software patches are applied.

Responsible

CPANSec

Reservation

11/07/2026

Disclosure

11/30/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!