CWE-73: External Control of File Name or Path
635 CVEs have CWE-73 as their primary weakness. 5 of them are in the CISA KEV catalog. The highest EPSS score among them is 99.794%.
The product allows user input to control or influence paths or file names that are used in filesystem operations.
Child of CWE-642: External Control of Critical State Data
Mitigations
- Architecture and Design: When the set of filenames is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames, and reject all other inputs. For example, ID 1 could map to inbox.txt and ID 2 could map to profile.txt. Features such as the ESAPI AccessReferenceMap provide this capability.
- Architecture and Design Operation: Run your code in a jail or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict all access to files within a particular directory. Examples include the Unix chroot jail and AppArmor. In general, managed code may provide some protection. This may not be a feasible solution, and it only limits the impact to the operating system; the rest of your application may still be subject to compromise. Be careful to avoid CWE-243 and other weaknesses related to jails.
- Architecture and Design: For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
- Implementation: Assume all input is malicious. Use an accept known good input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, boat may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as red or blue. Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However,…
- Implementation: Use a built-in path canonicalization function (such as realpath() in C) that produces the canonical version of the pathname, which effectively removes .. sequences and symbolic links (CWE-23, CWE-59).
- Installation Operation: Use OS-level permissions and run as a low-privileged user to limit the scope of any successful attack.
- Operation Implementation: If you are using PHP, configure your application so that it does not use register_globals. During implementation, develop your application so that it does not rely on this feature, but be wary of implementing a register_globals emulation that is subject to weaknesses such as CWE-95, CWE-621, and similar issues.
- Testing: Use tools and techniques that require manual (human) analysis, such as penetration testing, threat modeling, and interactive tools that allow the tester to record and modify an active session. These may be more effective than strictly automated techniques. This is especially the case with weaknesses that are related to design and business rules.
Observed examples
- CVE-2022-45918: Chain: a learning management tool debugger uses external input to locate previous session logs (CWE-73) and does not properly validate the given path (CWE-20), allowing for filesystem path traversal using ../ sequences (CWE-24)
- CVE-2008-5748: Chain: external control of values for user's desired language and theme enables path traversal.
- CVE-2008-5764: Chain: external control of user's target language enables remote file inclusion.
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2025-33053 | 2025-06-10 | HIGH | 8.8 | 87.135% | External control of file name or path in Internet Shortcut Files allows an unauthorized attacker to execute code over a network. |
| CVE-2024-43451 | 2024-11-12 | MEDIUM | 6.5 | 84.266% | NTLM Hash Disclosure Spoofing Vulnerability |
| CVE-2025-24054 | 2025-03-11 | MEDIUM | 6.5 | 62.270% | External control of file name or path in Windows NTLM allows an unauthorized attacker to perform spoofing over a network. |
| CVE-2026-96656 | 2026-09-23 | HIGH | 7.2 | 19.767% | Plex Media Server before 1.43.3.10861 allows an admin user to write arbitrary files that may be executed on load. The preference TranscoderH264Options is… |
| CVE-2025-0111 | 2025-02-12 | MEDIUM | 6.5 | 1.999% | An authenticated file read vulnerability in the Palo Alto Networks PAN-OS software enables an authenticated attacker with network access to the management web… |
| CVE-2026-129539 | 2026-11-16 | MEDIUM | 6.5 | 0.260% | SSCMS 7.2.0 through 7.4.0 contains an arbitrary file read vulnerability that allows any registered user-center account to copy server files by supplying source… |
| CVE-2026-121864 | 2026-11-17 | HIGH | 8.5 | not scored | In nanobot, when sandboxed exec is enabled, the shell executable used to run commands can be selected by the caller and is launched before the sandbox is… |
| CVE-2026-87932 | 2026-11-16 | MEDIUM | 6.8 | not scored | LibreOffice Writer can save documents in DOCX format. A document can contain content controls whose values are bound to custom XML data, and that data is… |
| CVE-2026-101353 | 2026-11-16 | MEDIUM | 6.8 | not scored | LibreOffice Base documents can contain an embedded HSQLDB database, and other documents can use such a database as a data source. The definition of the… |
| CVE-2026-45016 | 2026-11-16 | MEDIUM | 6.5 | not scored | EGroupware is a web-based groupware server written in PHP. Prior to 23.1.20260601 and 26.5.20260507, the processURL2InlineImages logic in api/src/Mail.php… |
| CVE-2026-129852 | 2026-11-16 | MEDIUM | 5.3 | not scored | SeaweedFS before 4.42 contains an information disclosure vulnerability that allows unauthenticated attackers to probe local files by supplying a filesystem… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-73'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-73'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).