CVE-2026-135843: Net::Server::PSGI versions through 2.018 for Perl allow a client that stops reading a response to hold a server process indefinitely, as the timeout_idle alarm cannot end a blocked write
Robert Rothenberg 29 Nov 2026 23:39 UTC
========================================================================
CVE-2026-135843 CPAN Security Group
========================================================================
CVE ID: CVE-2026-135843
Distribution: Net-Server
Versions: through 2.018
MetaCPAN: https://metacpan.org/dist/Net-Server
VCS Repo: https://github.com/rhandom/perl-net-server
Net::Server::PSGI versions through 2.018 for Perl allow a client that
stops reading a response to hold a server process indefinitely, as the
timeout_idle alarm cannot end a blocked write
Description
-----------
Net::Server::PSGI versions through 2.018 for Perl allow a client that
stops reading a response to hold a server process indefinitely, as the
timeout_idle alarm cannot end a blocked write.
process_request bounds each request with an alarm whose handler dies,
and print_psgi_body writes the response to the blocking client socket.
When the alarm interrupts a write that has already sent part of its
buffer, perl's I/O layer returns the partial count without running the
handler and blocks again on the rest, so the handler runs only once the
write ends.
A remote attacker who requests a response larger than the socket
buffers and then stops reading holds one server process per connection.
Enough such connections to reach max_servers stop the server from
answering new requests.
Problem types
-------------
- CWE-770 Allocation of Resources Without Limits or Throttling
Workarounds
-----------
No fixed release is available. Apply the patch together with the patch
for CVE-2026-124295, without which a timed-out write stops a Single
server. For deployments that cannot apply the patch, run the server
behind a reverse proxy that buffers whole responses.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/PSGI.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-135843-r1.patch