cve.bz

CWE-243: Creation of chroot Jail Without Changing Working Directory

Filter

The product uses the chroot() system call to create a jail, but it does not change the working directory afterward.

What the weakness is: CWE-243 at MITRE. All weaknesses

Ask an AI about CWE-243

Show the promptExplain CWE-243: Creation of chroot Jail Without Changing Working Directory and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/243.html and https://cve.bz/cve/cwe/243?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.

By year: all 2026 2025 2024 2023 2022 2021

  1. –CVE-2026-124299EPSS 0.3%

    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. Relativ…