Technical impact
Net::Server permits file access outside the chroot when the post_bind event calls chroot but does not change the working directory. This allows a handler that receives a request-influenced relative path to resolve that path against the actual filesystem, enabling an attacker to read or write arbitrary files with the server’s run-as user permissions. The compromise could expose credentials or modify system files and represents a CWE-243 weakness.
Affected Systems
The vulnerability affects the Perl module Net::Server versions 2.018 and earlier. Any deployment that starts the server with the chroot option enabled but does not change the working directory is susceptible. The patch is available for these versions via CPAN.
Risk and Exploitability
The CVSS and EPSS metrics are not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers can exploit the flaw by sending a specially crafted request to a handler that opens a relative path, thereby gaining local file read or write access. The attack requires the handler to accept user-controlled paths and assumes the server process runs with elevated privileges. Because the flaw does not involve remote network access beyond normal server communication, the risk is primarily local and depends on the exposure of the vulnerable path.