CVE-2026-124290 in Net::Serverinfo

Summary

by MITRE • 11/30/2026

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.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 11/30/2026

The vulnerability identified in Net::Server versions through 2.018 for Perl represents a significant resource exhaustion flaw rooted in improper handling of client disconnections during asynchronous I/O operations. This issue primarily affects the TCP, UNIX domain socket, and SSL protocol classes as well as the core INET module within the framework. The root cause lies in the implementation of the read_until function, which is designed to accumulate data from a filehandle until either a specified number of bytes are received or a specific end pattern matches. However, the loop logic fails to validate the return value of the underlying read system call. When a remote client abruptly closes its connection while the server is still attempting to read more data, the read operation returns zero, indicating an end-of-file condition. Because this return value is not checked for termination conditions within the loop, the code continues to iterate indefinitely in a tight spin cycle, consuming one hundred percent of a CPU core until the process is manually terminated or the operating system kills it due to resource limits.

This technical flaw has severe operational implications for any service relying on Net::Server as its underlying framework. In typical web server scenarios utilizing the HTTP protocol class, every incoming request header is processed through this vulnerable read_until mechanism. An attacker can exploit this by establishing a connection and immediately closing it before sending complete headers or without triggering the standard timeout_header setting of fifteen seconds. This action forces the worker process to remain stuck in the infinite loop at full CPU utilization for the duration required for higher-level timeouts to eventually intervene, if they do so effectively. In scenarios where callers invoke read_without their own independent timeout mechanisms, the spin is indefinite and permanent until external intervention occurs. A sustained stream of such short-lived connections from a distributed set of sources can rapidly exhaust all available worker processes in the server pool, leading to a complete denial of service for legitimate users who are unable to obtain processing time or establish new connections.

From a classification perspective, this vulnerability aligns with CWE-400, which describes Uncontrolled Resource Consumption, specifically manifesting as CPU exhaustion through an infinite loop triggered by external input conditions that were not properly validated. The attack vector is consistent with ATT&CK technique T1499, Endpoint Denial of Service, where the adversary leverages resource consumption to degrade or halt system functionality. While the SSLEAY protocol class remains unaffected due to its distinct implementation details, the widespread use of TCP and UNIX sockets in Perl-based network services makes this a critical concern for infrastructure stability.

Mitigation strategies must focus on both immediate patching and architectural hardening. The primary remediation is to upgrade Net::Server to version 2.019 or later, where the read loop logic has been corrected to properly check return values and terminate upon connection closure. For environments unable to update immediately, administrators should enforce strict timeout policies at the network level using firewall rules or reverse proxies that drop idle connections after a very short duration, thereby preventing the client from holding open sockets long enough to trigger the CPU spin. Additionally, implementing resource limits via operating system tools such as ulimit can help contain the impact of any single compromised worker process by capping its maximum CPU time before it is terminated by the kernel. Regular auditing of connection handling logic in custom Perl network applications is also recommended to ensure similar patterns are not replicated elsewhere in the codebase.

Responsible

CPANSec

Reservation

11/07/2026

Disclosure

11/30/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!