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
·
Updated

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 logfile, pidfile and, in Net::Server::HTTP, accesslogfile 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.

Affected Software

1 affected component
cpan/Net::Server<=2.018

Event History

Nov 29, 2026
CVE Published
via MITRE·11:28 PM
Data Sourced
via MITRE·11:28 PM
DescriptionWeakness
Nov 30, 2026
Data Sourced
via NVD·12:17 AM
DescriptionWeakness

Frequently Asked Questions

1

What deployment conditions make this exploitable?

The server must be started as root and configured to drop privileges to a run-as user. The run-as account, or another account, must be able to write to the directory containing the configured log, PID, or Net::Server::HTTP access-log path.

2

What does an attacker need to do?

An attacker who can write to the relevant directory places a symlink at the log_file, pid_file, or access_log_file path pointing to a target file. On the next root-started server launch, the path is opened and chowned to the run-as account while following the symlink.

3

What is the impact of a successful exploit?

The run-as account gains ownership of the file selected by the symlink. For log files, root may create a missing target or open an existing target before ownership is changed.

4

Which file settings are involved?

The affected paths are log_file and pid_file, plus access_log_file when using Net::Server::HTTP. All are processed before the server drops privileges.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203