🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.rc
1 messages
1 total messages Started by Salvatore Bonaccorso Mon, 30 Nov 2026 07:40
Bug#1155883: libnet-server-perl: CVE-2026-124290 CVE-2026-124291 CVE-2026-124292 CVE-2026-124293 CVE-2026-124294 CVE-2026-124295...
#4569
Author: Salvatore Bonaccorso
Date: Mon, 30 Nov 2026 07:40
310 lines
19239 bytes
Source: libnet-server-perl
Version: 2.018-1
X-Debbugs-CC: team@security.debian.org
Severity: grave
Tags: security upstream

Hi,

The following vulnerabilities were published for libnet-server-perl.

So far there is no new upstream version (at time of check and filling
bugreport). Fillign as grave as it should be fixed for forky,
undecided yet on stable if they can go via point release or security
fix.

CVE-2026-124290[0]:
| Net::Server versions through 2.018 for Perl allow CPU exhaustion via
| a read_until loop that keeps reading after the client disconnects.
| read_until reads one byte per iteration and leaves the loop only
| once it has the requested number of bytes or a match for the end
| pattern. Nothing checks the return value of read(), so once the peer
| has closed the connection every read returns 0 and the loop spins at
| full CPU. The TCP, UNIX and SSL protocol classes and
| Net::Server::INET share this loop. The SSLEAY protocol class is not
| affected.  Net::Server::HTTP reads every request header through
| read_until, so a client that connects and closes before ending its
| headers holds a worker at full CPU until timeout_header (15 seconds
| by default) fires. A stream of such short-lived connections keeps
| every worker busy. Other callers of read_until without their own
| timeout spin indefinitely.


CVE-2026-124291[1]:
| 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 post_accept, 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.


CVE-2026-124292[2]:
| Net::Server versions through 2.018 for Perl allow the run-as account
| to take ownership of any file via a symlink at the log or pid file
| path, which is opened and chowned as root at startup.  A server
| started as root with a user to drop to opens log_file, pid_file and,
| in Net::Server::HTTP, access_log_file before the drop, then chowns
| each path to the run-as user. Both the open and the chown follow a
| symlink. Root creates a missing target, or opens an existing one for
| the log files, and the chown hands it to the run-as account.  An
| account that can write to the directory holding these files,
| typically the run-as account itself, gains ownership of any file it
| links to at the next start as root.


CVE-2026-124293[3]:
| Net::Server::Thread versions through 2.018 for Perl start a handler
| thread for every connection regardless of max_servers and exit when
| thread creation fails.  The accept loop waits while threads->list()
| exceeds max_servers, but each handler thread is detached as soon as
| it is created, and threads->list() does not count detached threads.
| The count stays near zero, so the limit never applies. When thread
| creation fails, the loop calls detach on an undefined value and
| dies.  A remote client that holds connections open makes the server
| clone a Perl interpreter for each one until memory or thread limits
| are reached, and the server process then exits.


CVE-2026-124294[4]:
| Net::Server versions through 2.018 for Perl admit unlisted clients
| when an allow rule contains top-level alternation, as allow_deny
| anchors only the first and last branch.  Each allow and deny rule is
| matched against the peer address, and against the peer hostname
| under reverse_lookups, as /^$_$/. In a rule with an ungrouped |, the
| ^ binds to the first branch and the $ to the last, so the rule
| 10\.0\.0\.1|10\.0\.0\.2 matches any address that starts with
| 10.0.0.1 or ends with 10.0.0.2.  A remote client at an address the
| operator never listed, such as 10.0.0.15 or 110.0.0.2, passes the
| allow check. Under double  reverse_lookups, a hostname rule of the
| same shape also admits a PTR name such as a.example.attacker.test.


CVE-2026-124295[5]:
| Net::Server::PSGI versions through 2.018 for Perl allow one
| malformed request to kill a worker or stop a single-process server,
| as process_request re-throws the error after sending a 500 response.
| When header parsing or the application dies, process_request sends
| the 500 response and then dies with the same error. Nothing above it
| catches the error without re-throwing it: a PreFork child exits, and
| the Single server type, whose accept loop has no eval, ends the
| server.  A remote attacker can kill one worker per request under
| PreFork, the default server type, for example with an unknown method
| such as FOO, and can stop a Single server outright.


CVE-2026-124296[6]:
| 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 exec_cgi.  exec_cgi 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.


CVE-2026-124297[7]:
| Net::Server::Proto::SSLEAY versions through 2.018 for Perl skip
| client certificate verification by silently ignoring the verify
| mode, CA and cipher list options.  SSL_verify_mode, SSL_ca_file,
| SSL_ca_path and SSL_cipher_list are accepted as configuration and
| stored on the socket, but bind_SSL applies only the key and
| certificate files to the TLS context. Nothing warns that the other
| options have no effect. Net::Server::Proto::SSL honours the same
| option names.  A server configured to require client certificates
| completes the handshake with any client and serves it without one. A
| restricted cipher list falls back to the OpenSSL default.


CVE-2026-124298[8]:
| Net::Server versions through 2.018 for Perl keep root's group
| privileges after the privilege drop when user is set without group.
| When group is not set, post_bind defaults it to the current group
| list. In a server started as root that list is root's own, so the
| gid change is skipped and only the uid changes. The real, effective
| and saved gid stay 0, and the supplementary groups of the starting
| process are kept. The documentation says group defaults to nobody.
| Code running in the server after the drop, such as a compromised
| request handler, keeps access to files open to group 0 and to root's
| supplementary groups.


CVE-2026-124299[9]:
| Net::Server versions through 2.018 for Perl allow file access
| outside the chroot jail via relative paths when post_bind calls
| chroot without chdir.  The working directory stays wherever the
| server was started, outside the new root. Relative paths, and paths
| climbing from it with .., resolve against the real filesystem.  A
| request handler that opens a request-influenced relative path can
| read or write files outside the jail with the run-as user's
| permissions, which the chroot option exists to prevent.


CVE-2026-124300[10]:
| 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.


CVE-2026-124301[11]:
| 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 exec_trusted_perl.  exec_trusted_perl 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
| max_servers. Each extra worker inherits the failed require, so it
| fails later requests for that script and spawns another.


CVE-2026-124302[12]:
| 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.


CVE-2026-124303[13]:
| 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::get_error, 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 post_accept 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.


CVE-2026-124304[14]:
| 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 process_request
| 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.


CVE-2026-124305[15]:
| Net::Server::PreFork versions through 2.018 for Perl let local users
| stop the server accepting connections by locking a lock_file that
| other users can read.  With lock_file 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 lock_file uses a temporary lock file with mode 0600
| and is not affected.


CVE-2026-124306[16]:
| Net::Server::HTTP versions through 2.018 for Perl allow a remote
| client to reach an app handler that a reverse proxy blocks, via dot
| segments that app dispatch does not remove.  The app setting maps
| path prefixes to CGI scripts or code references. Dispatch matches
| each prefix against the request path as received, without removing
| "." and ".." segments, so GET /admin/../pub runs the handler
| configured for /admin.  Where a reverse proxy enforces access rules
| on the normalised path and forwards the original request path, a
| remote client can run a handler the proxy was meant to block.


CVE-2026-135843[17]:
| 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.


If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities & Exposures) ids in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-124290
    https://www.cve.org/CVERecord?id=CVE-2026-124290
[1] https://security-tracker.debian.org/tracker/CVE-2026-124291
    https://www.cve.org/CVERecord?id=CVE-2026-124291
[2] https://security-tracker.debian.org/tracker/CVE-2026-124292
    https://www.cve.org/CVERecord?id=CVE-2026-124292
[3] https://security-tracker.debian.org/tracker/CVE-2026-124293
    https://www.cve.org/CVERecord?id=CVE-2026-124293
[4] https://security-tracker.debian.org/tracker/CVE-2026-124294
    https://www.cve.org/CVERecord?id=CVE-2026-124294
[5] https://security-tracker.debian.org/tracker/CVE-2026-124295
    https://www.cve.org/CVERecord?id=CVE-2026-124295
[6] https://security-tracker.debian.org/tracker/CVE-2026-124296
    https://www.cve.org/CVERecord?id=CVE-2026-124296
[7] https://security-tracker.debian.org/tracker/CVE-2026-124297
    https://www.cve.org/CVERecord?id=CVE-2026-124297
[8] https://security-tracker.debian.org/tracker/CVE-2026-124298
    https://www.cve.org/CVERecord?id=CVE-2026-124298
[9] https://security-tracker.debian.org/tracker/CVE-2026-124299
    https://www.cve.org/CVERecord?id=CVE-2026-124299
[10] https://security-tracker.debian.org/tracker/CVE-2026-124300
    https://www.cve.org/CVERecord?id=CVE-2026-124300
[11] https://security-tracker.debian.org/tracker/CVE-2026-124301
    https://www.cve.org/CVERecord?id=CVE-2026-124301
[12] https://security-tracker.debian.org/tracker/CVE-2026-124302
    https://www.cve.org/CVERecord?id=CVE-2026-124302
[13] https://security-tracker.debian.org/tracker/CVE-2026-124303
    https://www.cve.org/CVERecord?id=CVE-2026-124303
[14] https://security-tracker.debian.org/tracker/CVE-2026-124304
    https://www.cve.org/CVERecord?id=CVE-2026-124304
[15] https://security-tracker.debian.org/tracker/CVE-2026-124305
    https://www.cve.org/CVERecord?id=CVE-2026-124305
[16] https://security-tracker.debian.org/tracker/CVE-2026-124306
    https://www.cve.org/CVERecord?id=CVE-2026-124306
[17] https://security-tracker.debian.org/tracker/CVE-2026-135843
    https://www.cve.org/CVERecord?id=CVE-2026-135843

Regards,
Salvatore
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads