# 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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-11-29T23:33:34.526Z
- Modified: 2026-11-30T00:17:58.907Z
- Weaknesses: CWE-415
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- Net-Server: up to 2.018

## References

- <https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/Proto/SSLEAY.pm> (technical-description)
- <https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/PSGI.pm> (technical-description)
- <https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124302-r1.patch> (patch)

## Sources

- CVE List: [CVE-2026-124302](https://www.cve.org/CVERecord?id=CVE-2026-124302), CVE Terms of Use, modified 2026-11-29
- NVD: [CVE-2026-124302](https://nvd.nist.gov/vuln/detail/CVE-2026-124302), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-124302 · Whole record: https://cve.day/CVE-2026-124302.json · Rebuilt by cve.day 2026-11-30T00:32:38.424Z
