CVE-2026-124299
Received Received - Intake

Path Traversal in Net::Server for Perl

Vulnerability report for CVE-2026-124299, 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 file access outside the chroot jail via relative paths when post_bind 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.

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-243 The product uses the chroot() system call to create a jail, but does not change the working directory afterward. This does not prevent access to files outside of the jail.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects Net::Server versions through 2.018 for Perl. When the chroot option is used, the server fails to change its working directory to the new root after chrooting. This leaves the working directory outside the chroot jail, allowing relative paths (including those using ..) to access files outside the intended restricted environment.

Detection Guidance

To detect this vulnerability, check if your Net::Server Perl module version is 2.018 or earlier. Run: perl -MNet::Server -e 'print $Net::Server::VERSION' to verify the version. If it is 2.018 or below, the system is likely vulnerable.

Impact Analysis

An attacker could exploit this to read or write files outside the chroot jail using the permissions of the user running the server. This bypasses the intended security isolation provided by chroot, potentially leading to unauthorized access to sensitive files or system resources.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating confidentiality and integrity requirements in GDPR and HIPAA. Non-compliance may result in legal penalties, data breach notifications, and reputational damage due to compromised sensitive information.

Mitigation Strategies

Apply the provided patch to Net::Server 2.018, which adds a chdir('/') call after chroot to ensure the working directory is inside the jail. Alternatively, upgrade to a patched version if available. If neither is possible, disable the chroot feature until mitigation is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-124299. 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...