CVE-2026-124299: Net::Server versions through 2.018 for Perl allow file access outside the chroot jail via relative paths when post_bind calls chroot without chdir

Published Nov 29, 2026
·
Updated

Net::Server versions through 2.018 for Perl allow file access outside the chroot jail via relative paths when postbind calls chroot without chdir.

The working directory stays wherever the server was started, outside the new root. Relative paths, and paths climbing from it with .., resolve against the real filesystem.

A request handler that opens a request-influenced relative path can read or write files outside the jail with the run-as user's permissions, which the chroot option exists to prevent.

Affected Software

5 affected components
cpan/Net::Server<=2.018
debian/libnet-server-perl*
debian/libnet-server-perl*
debian/libnet-server-perl*
debian/libnet-server-perl<=2.013-2, <=2.014-1, <=2.018-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    After calling chroot in Net::Server's post_bind, change the working directory to the new root so relative paths resolve inside the jail.

Event History

Nov 29, 2026
CVE Published
via MITRE·11:30 PM
Data Sourced
via MITRE·11:30 PM
DescriptionWeakness
Nov 30, 2026
Data Sourced
via NVD·12:17 AM
DescriptionWeakness
Data Sourced
via OSV·08:00 AM
Affected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments are exposed when Net::Server's post_bind path calls chroot without also changing the working directory. The issue matters if a request handler opens a relative path influenced by a request.

2

What does an attacker need to exploit it?

An attacker needs to cause a request handler to open a request-influenced relative path. Relative paths, including paths using .. traversal, can then resolve from the server's pre-chroot working directory outside the jail.

3

What access could exploitation provide?

The attacker may be able to read or write files outside the chroot jail. Access is limited to the permissions of the user account under which the server runs.

4

What can be done if the available patch cannot be applied immediately?

Ensure the process changes its working directory after chroot, so relative paths resolve within the jail. Also avoid opening request-influenced relative paths in handlers.

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