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

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

Analysis

AI-generated

Technical impact

Net::Server versions through 2.018 for Perl allow a run‑as account to gain ownership of any file located behind a symbolic link at the log or PID file path. The daemon creates or opens the target as root, then chowns the resulting file to the run‑as user; this follows the symlink, so an attacker who can write in the containing directory can link to an arbitrary file and force ownership transfer. This flaw provides local privilege escalation and the ability to tamper with or remove critical files, undermining both integrity and availability.

Affected Systems

The affected product is the Net::Server module for Perl, specifically all releases up to 2.018. No precise version list is provided beyond the upper bound, but any installation utilizing these releases that starts as root and drops privileges is vulnerable.

Risk and Exploitability

The exploit requires the daemon to run as root and subsequently drop to a less privileged user. An attacker who can write into the directory holding the log or PID files can place a symlink targeting any desired file; on the next service startup, root will create or open the target, and chown will hand ownership to the run‑as account. The EPSS score is not available and the vulnerability is not listed in CISA KEV, but the absence of mitigation and the high potential for privilege escalation make it a serious risk in environments where the daemon already has root launch privileges.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Apply the official patch CVE-2026-124292-r1.patch to Net::Server
  • If the patch cannot be applied, relocate log_file, pid_file, and access_log_file to directories that only root can write to
  • Configure the run‑as account so it has no write permission on the directory containing the log or PID files

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

Tracking

Sign in to view the affected projects.

Advisories

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

Subscriptions

No data.

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

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