CVE-2026-124302

Net::Server::Proto::SSLEAY versions through 2.018 for Perl free the TLS session twice when a client socket is closed a second time, as a PSGI streaming response does

Published Nov 29, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
Net::Server::Proto::SSLEAY versions through 2.018 for Perl free the TLS session twice when a client socket is closed a second time, as a PSGI streaming response does.

close frees the session handle stored on the client socket but leaves the stale pointer in place, so a second close shuts down and frees it again. Net::Server::PSGI hands the client socket to the application as the streaming writer. Closing the writer, as the PSGI specification asks, is the first close, and the server closes the client again after the request.

A remote client that requests a streaming endpoint of a PSGI server on proto ssleay corrupts the heap of the server process, which then crashes. A Single server stops.

Analysis

AI-generated

Technical impact

The vulnerability is a double free in Net::Server::Proto::SSLEAY version 2.018 and earlier. When a client socket is closed twice—first by the PSGI streaming writer, then by the server—the TLS session handle is freed twice. This corrupts the heap of the server process, leading to a crash. The crash results in denial of service for the entire server. This flaw is classified as a CWE-415 type double‑free.

Affected Systems

Perl Net::Server::Proto::SSLEAY modules, versions 2.018 and older. The issue affects PSGI servers that expose streaming endpoints over a SSLEAY protocol, causing the module to free the TLS session handle twice.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, indicating that no widespread exploitation has yet been documented. Based on the description, a remote client can trigger the flaw by requesting a streaming endpoint over SSLEAY, which forces the server to release the TLS session handle a second time and corrupt the heap. The result is a crash that brings down a single server process. The high likelihood of causing a denial of service and lack of current exploit evidence suggest a medium to high risk until the patch is applied.

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 official patch from https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124302-r1.patch
  • If the patch cannot be applied immediately, configure a reverse proxy to terminate TLS and route traffic to the server using the plain tcp protocol instead of proto ssleay
  • Avoid exposing streaming endpoints to untrusted clients until the vulnerability is fixed

Generated by OpenCVE AI on November 30, 2026 at 00:21 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 free the TLS session twice when a client socket is closed a second time, as a PSGI streaming response does. close frees the session handle stored on the client socket but leaves the stale pointer in place, so a second close shuts down and frees it again. Net::Server::PSGI hands the client socket to the application as the streaming writer. Closing the writer, as the PSGI specification asks, is the first close, and the server closes the client again after the request. A remote client that requests a streaming endpoint of a PSGI server on proto ssleay corrupts the heap of the server process, which then crashes. A Single server stops.
Title Net::Server::Proto::SSLEAY versions through 2.018 for Perl free the TLS session twice when a client socket is closed a second time, as a PSGI streaming response does
Weaknesses CWE-415
References

Subscriptions

No data.

Weaknesses

Sources

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