Where
-Infinity
0

Net::Server::PreFork versions through 2.018 for Perl let local users stop the server accepting connections by locking a lockfile that other users can read.

With lockfile set, each PreFork and PreForkSimple child opens the file for writing with default permissions, mode 0666 less the umask, which is usually readable by other users. Outside Windows the children serialize accept with an exclusive flock on that file, and flock needs only a read-only handle.

A local user who can open the file and hold the lock keeps every child from accepting connections for as long as they hold it. A server without lockfile uses a temporary lock file with mode 0600 and is not affected.

First published (updated )

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

First published (updated )

Net::Server::Proto::SSLEAY versions through 2.018 for Perl allow a remote client to kill the server process by ending a connection without a clean TLS session, via stale OpenSSL errors that close treats as fatal.

Read and write failures are classified with Net::SSLeay::geterror, which leaves the OpenSSL error queue as it is. When the connection is closed after the request, close dies if the queue holds any error, and the exception ends the process. A handshake that fails during postaccept dies the same way. Connections rejected by the allow and deny rules are closed through the same path.

A remote client that sends plaintext or a malformed handshake, or with OpenSSL 3 simply connects and closes, kills the PreFork worker handling it or stops a Single server.

First published (updated )
Double Free

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.

First published (updated )

Net::Server::HTTP versions through 2.018 for Perl allow process exhaustion via a forked child that returns to the accept loop when a trusted script dies in exectrustedperl.

exectrustedperl forks and the child loads the script with require. When the script dies before any header is sent, the child re-throws the error instead of exiting. The error unwinds into the request handler the child inherited from the worker, which sends a 500 response and returns to the accept loop. The child is now an extra worker that the server never forked, counts or signals, and it keeps running after the server is stopped.

Under the PreFork and Single server types, every request the script rejects with die adds one such process, past maxservers. Each extra worker inherits the failed require, so it fails later requests for that script and spawns another.

First published (updated )

Net::Server::Thread versions through 2.018 for Perl terminate the whole server when a request timeout alarm fires in a handler thread.

Net::Server::HTTP and Net::Server::PSGI time each request with alarm() and a local ALRM handler. Under the Thread server type that code runs in a handler thread, but the alarm is process-wide and the main thread installs no ALRM handler, so SIGALRM ends the server process.

A remote client that connects and sends an incomplete request, or nothing, stops the server once the header timeout expires.

First published (updated )

Net::Server::HTTP versions through 2.018 for Perl allow a single request to abort a worker with out-of-memory via the client's Content-Length used as a read size in execcgi.

execcgi forwards the request body to the CGI script with read() calls sized by the Content-Length header. Perl grows the buffer to that size before reading, so a request declaring a huge length aborts the worker with an out-of-memory error that no eval can catch.

The same loop never treats a 0 return from read() as end of input. When the client closes its side before sending the declared body, the remaining length stays unchanged and the loop spins at full CPU until the request times out.

Any server that dispatches requests to a CGI script, including an app target given as an executable, is affected.

First published (updated )

Net::Server::Proto::SSL versions through 2.018 for Perl allow clients to hold server processes indefinitely via a TLS handshake that has no timeout and runs before allow/deny checks.

The handshake runs in postaccept, before the client address is read and the allow/deny rules are applied. The listening socket is created without a timeout, so the handshake blocks until the client speaks. A failed handshake dies, and nothing in the server loop catches it without re-throwing it.

A remote client, including one the allow/deny rules reject, can hold a server process with an idle connection, so enough idle connections stop the server from answering. A client that sends plaintext ends a PreFork child process, or stops a Single server.

First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203