|
|
Message-ID: <a44e765f-bfaa-49bf-86db-a302ac2096a2@cpansec.org>
Date: Sun, 29 Nov 2026 23:57:27 +0000
From: Robert Rothenberg <rrwo@...nsec.org>
To: oss-security@...ts.openwall.com
Subject: Net-Server versions through 2.018 for Perl (18 CVEs)
CVE-2026-124290
Net::Server versions through 2.018 for Perl allow CPU exhaustion via
a read_until loop that keeps reading after the client disconnects
CVE-2026-124291
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
CVE-2026-124292
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
CVE-2026-124293
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
CVE-2026-124294
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
CVE-2026-124295
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
CVE-2026-124296
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
CVE-2026-124297
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
CVE-2026-124298
Net::Server versions through 2.018 for Perl keep root's group
privileges after the privilege drop when user is set without group
CVE-2026-124299
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
CVE-2026-124300
Net::Server::Thread versions through 2.018 for Perl terminate the
whole server when a request timeout alarm fires in a handler thread
CVE-2026-124301
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
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
CVE-2026-124303
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
CVE-2026-124304
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
CVE-2026-124305
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
CVE-2026-124306
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
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
========================================================================
CVE-2026-124290 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124290
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 versions through 2.018 for Perl allow CPU exhaustion via a
read_until loop that keeps reading after the client disconnects
Description
-----------
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.
Problem types
-------------
- CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, run Net::Server::HTTP and Net::Server::PSGI
behind a reverse proxy that forwards only complete requests, and set an
alarm around other calls to read_until.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/Proto/TCP.pm
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/HTTP.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124290-r1.patch
========================================================================
CVE-2026-124291 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124291
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::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
Description
-----------
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.
Problem types
-------------
- CWE-1088 Synchronous Access of Remote Resource without Timeout
- CWE-248 Uncaught Exception
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, terminate TLS in a reverse proxy and run the
server on proto tcp.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/Proto/SSL.pm
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124291-r1.patch
========================================================================
CVE-2026-124292 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124292
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 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
Description
-----------
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.
Problem types
-------------
- CWE-59 Improper Link Resolution Before File Access
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, keep log_file, pid_file and access_log_file in
directories that only root can write to.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server.pm
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/Daemonize.pm
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/HTTP.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124292-r1.patch
========================================================================
CVE-2026-124293 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124293
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::Thread versions through 2.018 for Perl start a handler
thread for every connection regardless of max_servers and exit when
thread creation fails
Description
-----------
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.
Problem types
-------------
- CWE-770 Allocation of Resources Without Limits or Throttling
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, use the PreFork or Fork server type instead of
Thread.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/Thread.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124293-r1.patch
========================================================================
CVE-2026-124294 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124294
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 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
Description
-----------
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.
Problem types
-------------
- CWE-777 Regular Expression without Anchors
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, wrap each allow rule that contains | in a
group, such as (?:10\.0\.0\.1|10\.0\.0\.2), or use cidr_allow for
address rules.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124294-r1.patch
========================================================================
CVE-2026-124295 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124295
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 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
Description
-----------
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.
Problem types
-------------
- CWE-248 Uncaught Exception
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, override process_request in a subclass to call
the inherited method inside an eval, which discards the error after the
500 response has been sent.
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-124295-r1.patch
========================================================================
CVE-2026-124296 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124296
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::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
Description
-----------
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.
Problem types
-------------
- CWE-789 Memory Allocation with Excessive Size Value
- CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, run the server behind a reverse proxy that
limits the request body size and buffers the whole body before
forwarding it, or do not dispatch requests to CGI scripts.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/HTTP.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124296-r1.patch
========================================================================
CVE-2026-124297 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124297
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::Proto::SSLEAY versions through 2.018 for Perl skip client
certificate verification by silently ignoring the verify mode, CA and
cipher list options
Description
-----------
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.
Problem types
-------------
- CWE-295 Improper Certificate Validation
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, use proto ssl instead of proto ssleay where
client certificate verification or a restricted cipher list is
required.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/Proto/SSLEAY.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124297-r1.patch
========================================================================
CVE-2026-124298 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124298
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 versions through 2.018 for Perl keep root's group
privileges after the privilege drop when user is set without group
Description
-----------
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.
Problem types
-------------
- CWE-271 Privilege Dropping / Lowering Errors
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, set group explicitly whenever user is set.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server.pm
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server.pod
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124298-r1.patch
========================================================================
CVE-2026-124299 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124299
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 versions through 2.018 for Perl allow file access outside
the chroot jail via relative paths when post_bind calls chroot without
chdir
Description
-----------
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.
Problem types
-------------
- CWE-243 Creation of chroot Jail Without Changing Working Directory
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, start the server with the chroot directory as
its working directory.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124299-r1.patch
========================================================================
CVE-2026-124300 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124300
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::Thread versions through 2.018 for Perl terminate the whole
server when a request timeout alarm fires in a handler thread
Description
-----------
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.
Problem types
-------------
- CWE-705 Incorrect Control Flow Scoping
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, run Net::Server::HTTP and Net::Server::PSGI
under the PreFork or Fork server type instead of Thread.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/Thread.pm
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/HTTP.pm
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-124300-r1.patch
========================================================================
CVE-2026-124301 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124301
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::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
Description
-----------
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.
Problem types
-------------
- CWE-705 Incorrect Control Flow Scoping
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, have each script run through exec_trusted_perl
catch its own errors and print an error response instead of dying.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/HTTP.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124301-r1.patch
========================================================================
CVE-2026-124302 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124302
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::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
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.
Problem types
-------------
- CWE-415 Double Free
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, terminate TLS in a reverse proxy and run the
server on proto tcp.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/Proto/SSLEAY.pm
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-124302-r1.patch
========================================================================
CVE-2026-124303 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124303
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::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
Description
-----------
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.
Problem types
-------------
- CWE-248 Uncaught Exception
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, terminate TLS in a reverse proxy and run the
server on proto tcp.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/Proto/SSLEAY.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124303-r1.patch
========================================================================
CVE-2026-124304 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124304
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::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
Description
-----------
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.
Problem types
-------------
- CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, terminate TLS in a reverse proxy and run the
server on proto tcp.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/Proto/SSLEAY.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124304-r1.patch
========================================================================
CVE-2026-124305 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124305
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::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
Description
-----------
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.
Problem types
-------------
- CWE-412 Unrestricted Externally Accessible Lock
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, leave lock_file unset, or place it in a
directory that other local users cannot access.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/PreFork.pm
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/PreForkSimple.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124305-r1.patch
========================================================================
CVE-2026-124306 CPAN Security Group
========================================================================
CVE ID: CVE-2026-124306
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::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
Description
-----------
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.
Problem types
-------------
- CWE-436 Interpretation Conflict
Workarounds
-----------
No fixed release is available. Apply the patch. For deployments that
cannot apply the patch, have the reverse proxy forward the normalised
request path, or reject requests whose path contains dot segments.
References
----------
https://metacpan.org/release/BBB/Net-Server-2.018/source/lib/Net/Server/HTTP.pm
https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124306-r1.patch
========================================================================
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
Powered by blists - more mailing lists
Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.