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

Published Nov 29, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Net::Server::PreFork versions 2.018 and earlier permit a local user to lock a shared lock_file that the server’s child processes use for synchronizing accept calls. The lock_file is created with default permissions that allow other users to read and write it, and the flock operation only requires a read‑only handle, so the user can grab the lock and prevent the server from ever accepting new connections. The immediate result is a denial of service against all clients connecting to the server; all child processes block on the lock and no further connections are accepted until the lock is released. Because the effect is local, the attacker cannot gain network access or execute arbitrary code, but the service becomes unusable. This flaw corresponds to a concurrency/lock misuse weakness (CWE‑412), highlighting improper synchronization and permission handling in the server’s design.

Affected Systems

Any installation of the Perl Net::Server::PreFork or PreForkSimple modules, version 2.018 or below, that configures a lock_file path that is readable or writable by other local users is vulnerable. Systems running these modules on UNIX‑like operating systems (excluding Windows, which uses a different locking mechanism) are susceptible because the children rely on flock with a shared read lock. Administrators of services such as web servers, database proxies, or other multi‑process Perl applications that rely on Net::Server for concurrency should verify the lock_file setting and module version.

Risk and Exploitability

The vulnerability can be exploited only by users with local filesystem access to the server’s runtime environment. No network privileges or elevated rights are required beyond standard write permission on the lock_file location. Given that a malicious local user can readily acquire the lock and sustain the denial of service, the practicality of the attack is high for environments where local users are granted write access to the lock_file directory, making the risk notable for service integrity. No public exploitation reports or KEV designation exist, and the EPSS score is not available, so the overall globally reported risk remains moderate, but the local denial of service can be significant in production deployments.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Apply the vendor patch CVE-2026-124305-r1.patch or upgrade Net::Server to a version later than 2.018 that fixes the lock_file permission handling.
  • If patching is not feasible, configure the server to omit the lock_file setting or set it to a path that resides in a directory with permissions that prevent other users from reading or writing the file.
  • If a lock_file must be used, change its permissions to 0600 or place it in a directory owned exclusively by the service user so that only the server process can lock it.

Generated by OpenCVE AI on November 30, 2026 at 00:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title 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
Weaknesses CWE-412
References

Subscriptions

No data.

Weaknesses
  • CWE-412

    Unrestricted Externally Accessible Lock

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 29, 2026, 11:34 PM
Reserved
Nov 7, 2026, 12:01 PM
Status
Received
Published
Nov 30, 2026, 12:17 AM
Modified
Nov 30, 2026, 12:17 AM