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
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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Affected deployments use Net::Server::PSGI with the ssleay protocol and serve PSGI streaming responses over TLS. A Single server can stop after the server process crashes.
What must an attacker be able to do to trigger the failure?
The attacker needs to make a request to a streaming endpoint on an affected PSGI server using the ssleay protocol. The streaming writer is closed first, followed by the server closing the client connection again.
How can I determine whether my service is affected?
Check whether it uses cpan/net-server through version 2.018, Net::Server::PSGI, and Net::Server::Proto::SSLEAY. Services that do not expose streaming PSGI endpoints do not match the described trigger path.
What can be done if an affected version is deployed?
A patch for Net-Server 2.018 is referenced in the advisory data. Until it is applied, reducing or disabling access to streaming PSGI endpoints over the ssleay protocol removes the described remote trigger path.