CVE-2026-124292
Received Received - Intake

Symlink Chown Privilege Escalation in Net::Server for Perl

Vulnerability report for CVE-2026-124292, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-30

Last updated on: 2026-11-30

Assigner: CPANSec

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-30
Last Modified
2026-11-30
Generated
2026-11-30
AI Q&A
2026-11-30
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-59 The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in Net::Server versions through 2.018 for Perl allows an attacker with write access to a directory to create symlinks pointing to any file. When the server starts as root and drops privileges, it opens and chowns log and PID files. If these files are symlinks, the operations follow the link, allowing the attacker to take ownership of any file on the system.

Detection Guidance

Check for symlinks in log or PID file directories by running commands like 'ls -la /path/to/logs' or 'find /var/log -type l'. Review server startup scripts for Net::Server usage and verify if files are opened without O_NOFOLLOW protection.

Impact Analysis

An attacker could exploit this to gain control over critical system files, leading to data theft, unauthorized modifications, or service disruption. If the server runs as root, the attacker could take ownership of sensitive files like configuration files, databases, or logs, potentially compromising the entire system.

Compliance Impact

This vulnerability could lead to unauthorized access or modification of sensitive data, violating GDPR's data integrity and confidentiality requirements or HIPAA's safeguards for protected health information. Non-compliance may result in legal penalties, reputational damage, and loss of trust.

Mitigation Strategies

Apply the provided patch to upgrade to a fixed version of Net::Server. Ensure log and PID directories are not writable by untrusted users. Monitor file ownership changes in these directories after server restarts.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-124292. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...