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
Robert Rothenberg 29 Nov 2026 23:42 UTC
========================================================================
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