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
No CVSS score yet.
On this page
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.
- CWE
- CWE-59 Improper Link Resolution Before File Access (Link Following)
- OWASP Top 10
- A01:2025 Broken Access Control
- Published
- Assigned by
- CPANSec (CNA)
- NVD analysis
- Not in the NVD yet
- Record from
- the CVE List, synced
Fix and patched versions
Ask an AI about this CVE
Show the prompt
Explain CVE-2026-124292 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-124292?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-124292?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-124292 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Versions
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Net-Server | through 2.018 |
Attack patterns (CAPEC)
- CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
- CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
- CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
- CAPEC-132 Symlink Attack Likelihood: Low · Severity: High
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.
References
- https://security.metacpan.org/patches/N/Net-Server/2.018/CVE-2026-124292-r1.patch
- 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