CVE-2026-124303 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 kill the server process by ending a connection without a clean TLS session, via stale OpenSSL errors that close treats as fatal.

Read and write failures are classified with Net::SSLeay::get_error, which leaves the OpenSSL error queue as it is. When the connection is closed after the request, close dies if the queue holds any error, and the exception ends the process. A handshake that fails during post_accept dies the same way. Connections rejected by the allow and deny rules are closed through the same path.

A remote client that sends plaintext or a malformed handshake, or with OpenSSL 3 simply connects and closes, kills the PreFork worker handling it or stops a Single server.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/30/2026

The vulnerability identified in Net::Server::Proto::SSLEAY versions up to 2.018 represents a critical denial of service flaw rooted in improper error handling within Perl's SSL protocol implementation. This issue specifically affects servers utilizing the PreFork or Single worker models, where the termination of an individual connection can result in the complete collapse of the server process rather than just that specific client session. The root cause lies in how the library interacts with OpenSSL during the cleanup phase of a TLS handshake or connection closure. When read and write operations fail, the code utilizes Net::SSLeay::get_error to classify these failures. However, this function retrieves the error information without clearing the OpenSSL internal error queue. Consequently, when the close routine is subsequently invoked to terminate the connection, it checks for any remaining errors in that queue. Because the queue was not cleared after being read, the presence of stale or residual error data causes the close method to interpret these conditions as fatal exceptions. This logic flaw triggers a die statement within the Perl process, leading to an unhandled exception that terminates the entire worker thread or server instance immediately upon connection closure.

The operational impact of this vulnerability is severe for any production environment relying on Net::Server with SSL support. A remote attacker can exploit this by initiating a TLS handshake and then abruptly terminating the connection without completing the session cleanly, such as sending plaintext data instead of an encrypted handshake, providing malformed handshake packets, or simply connecting and closing the socket immediately if using OpenSSL 3. In scenarios involving PreFork workers, which are commonly used to handle multiple concurrent connections in parallel, this flaw allows a single malicious client to kill one of the worker processes. This reduces the server's capacity to handle legitimate traffic and can lead to service degradation or total outage depending on the number of available workers and the rate of exploitation. For Single mode servers, where all requests are handled sequentially within a single process, such an exception results in immediate and complete service disruption until the server is manually restarted. This behavior effectively turns any standard connection attempt into a potential vector for denial of service attacks against Perl-based web services or application servers utilizing this module.

From a classification perspective, this vulnerability aligns with CWE-253, which describes incorrect check of return value, as the code fails to properly manage the state and cleanup of error queues after retrieving them. It also relates closely to CWE-754: Improper Check for Unusual or Exceptional Conditions, where the software does not handle exceptional conditions in a way that maintains system stability. In terms of offensive security frameworks, this exploit maps directly to MITRE ATT&CK technique T1499: Endpoint Denial of Service, specifically under sub-techniques involving resource exhaustion through application layer attacks. The attacker leverages the server's own error handling logic against it, causing a crash that requires administrative intervention or automated restart mechanisms to restore service availability.

Mitigation strategies for this vulnerability involve upgrading Net::Server and its associated SSL modules to versions where the OpenSSL error queue is properly cleared after being read by get_error before any subsequent close operations are performed. Developers should ensure that all code paths involving connection termination, including those triggered by handshake failures or access control rejections via allow and deny rules, explicitly clear the OpenSSL error stack using functions like ERR_clear_error() in C-based wrappers or their Perl equivalents provided by Net::SSLeay. Additionally, implementing robust exception handling at a higher level within the server framework can prevent unhandled die statements from terminating the main process loop. For environments unable to immediately patch, deploying a reverse proxy such as Nginx or Apache in front of the vulnerable service can absorb and terminate connections before they reach the Perl application layer, thereby isolating the vulnerability from direct external exploitation while maintaining service continuity for legitimate users.

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 want to use VulDB in your project?

Use the official API to access entries easily!