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

Published Nov 29, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Net::Server::Proto::SSLEAY Perl module (up to version 2.018) contains a logic flaw where a disconnected TLS client causes the read operation to return an empty string instead of undef. Because the default handler loops on while (<STDIN>) without checking for EOF, each server process consumes 100% CPU while the client remains disconnected. This flaw is classified as CWE‑835: Loop With Unnecessary Condition Leading to Resource Exhaustion, and results in a denial‑of‑service that can be triggered by a remote attacker. When an attacker repeatedly initiates TLS handshakes and immediately disconnects, every server process can be saturated, leading to degraded service for legitimate users.

Affected Systems

All installations of the Net::Server::Proto::SSLEAY Perl module with a version not greater than 2.018 are affected. The vulnerability is triggered when a client performs a TLS handshake and then disconnects while the server process is running its default request handler on STDIN.

Risk and Exploitability

The CVSS score and EPSS metric are not published, and the vulnerability is not listed in the CISA KEV catalog, but the ability for an unauthenticated remote client to repeatedly exhaust server CPU makes the risk high in any environment that uses the affected module. Exploitation requires only the ability to initiate a TLS connection to the server and then terminate it; no special credentials or privileged access are needed. Attackers can easily automate this behavior, and a single vulnerable server process can be overwhelmed in a matter of seconds, effectively denying service. Due to the lack of a bounded timeout in the default handler, the attack can loop indefinitely, keeping server resources busy until manual intervention.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Apply the patch CVE-2026-124304-r1.patch from security.metacpan.org to correct the read handling in Net::Server::Proto::SSLEAY.
  • If the patch cannot be applied, configure a reverse proxy to terminate TLS before traffic reaches Net::Server and run Net::Server with the plain "proto tcp" option to avoid the faulty SSL layer.
  • Modify application code to detect an empty string return from STDIN during a request loop and exit the loop or terminate the process, ensuring the server does not consume CPU when a client disconnects.

Generated by OpenCVE AI on November 30, 2026 at 00:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title 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
Weaknesses CWE-835
References

Subscriptions

No data.

Weaknesses
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 29, 2026, 11:34 PM
Reserved
Nov 7, 2026, 12:01 PM
Status
Received
Published
Nov 30, 2026, 12:17 AM
Modified
Nov 30, 2026, 12:17 AM