External Control of File Name or Path (CWE-73)
CWE-73 occurs when user input controls or influences file names or paths used in filesystem operations. MITRE frames it as two conditions together: an attacker can specify the path, and doing so grants a capability that would not otherwise be allowed. It often begins chains with other file-related weaknesses.
Updated
About CWE-73
The application may read, overwrite or execute unexpected files. Availability can suffer if the path points to a large file, a special device or a file with an unexpected format.
- MITRE name
- External Control of File Name or Path
- Abstraction
- Base: abstract, but detailed enough to infer detection and prevention methods
- Status
- Draft
Mitigations
- Map a fixed set of input values, such as numeric IDs, to actual filenames and reject all other input.
- Run the code in a sandbox or jail that restricts file access to one directory.
- Validate filenames with a strict character allowlist and a list of permitted extensions.
- Repeat client-side checks on the server.
Detection
Automated static analysis that models data flow can often detect external control of filenames, though it may report false positives where validation exists.
CWE-73 in the KEV Catalog
as of 2026-11-14- 6 CISA KEV entries name External Control of File Name or Path (CWE-73) in their CVE record, tied for 41st among the 195 weaknesses named in the catalog.
- CISA added 1 CWE-73 entry to the KEV catalog in 2024, 3 in 2025, and 1 so far in 2026.
- Microsoft has the most CWE-73 entries in the CISA KEV catalog (3), followed by Juniper (1), Palo Alto Networks (1), and Plex (1).
Related Attack Patterns
8 CAPEC patternsCAPEC-267Leverage Alternate EncodingStandard · Severity High · Likelihood High
Loading…
CAPEC-13Subverting Environment Variable ValuesDetailed · Severity Very High · Likelihood High
Loading…
CAPEC-76Manipulating Web Input to File System CallsDetailed · Severity Very High · Likelihood High
Loading…
CAPEC-64Using Slashes and URL Encoding Combined to Bypass Validation LogicDetailed · Severity High · Likelihood High
Loading…
CAPEC-72URL EncodingDetailed · Severity High · Likelihood High
Loading…
CAPEC-78Using Escaped Slashes in Alternate EncodingDetailed · Severity High · Likelihood High
Loading…
CAPEC-79Using Slashes in Alternate EncodingDetailed · Severity High · Likelihood High
Loading…
CAPEC-80Using UTF-8 Encoding to Bypass Validation LogicDetailed · Severity High · Likelihood High
Loading…
CWE-73 Vulnerabilities
12 CVEs| CVE | Title | Vendor | CVSS | EPSS | KEV | Published |
|---|---|---|---|---|---|---|
| CVE-2026-96656KEV Plex Media Server arbitrary file write | Plex Media Server arbitrary file write | Plex | 8.6 | 1.8% | KEV | 2026-09-23 |
| CVE-2025-33053KEV Internet Shortcut Files Remote Code Execution Vulnerability | Internet Shortcut Files Remote Code Execution Vulnerability | Microsoft | 8.8 | 87.1% | KEV | 2025-06-10 |
| CVE-2025-24054KEV NTLM Hash Disclosure Spoofing Vulnerability | NTLM Hash Disclosure Spoofing Vulnerability | Microsoft | 6.5 | 62.3% | KEV | 2025-03-11 |
| CVE-2025-0111KEV PAN-OS: Authenticated File Read Vulnerability in the Management Web Interface | PAN-OS: Authenticated File Read Vulnerability in the Management Web Interface | Palo Alto Networks | 7.1 | 2.0% | KEV | 2025-02-12 |
| CVE-2024-43451KEV NTLM Hash Disclosure Spoofing Vulnerability | NTLM Hash Disclosure Spoofing Vulnerability | Microsoft | 6.5 | 84.3% | KEV | 2024-11-12 |
| CVE-2020-1631KEV Out of Cycle Security Advisory: Junos OS: Security vulnerability in J-Web and web based (HTTP/HTTPS) services | Out of Cycle Security Advisory: Junos OS: Security vulnerability in J-Web and web based (HTTP/HTTPS) services | Juniper Networks | 8.8 | 4.9% | KEV | 2020-05-04 |
| CVE-2026-20872 NTLM Hash Disclosure Spoofing Vulnerability | NTLM Hash Disclosure Spoofing Vulnerability | Microsoft | 6.5 | 19.8% | 2026-01-13 | |
| CVE-2026-20925 NTLM Hash Disclosure Spoofing Vulnerability | NTLM Hash Disclosure Spoofing Vulnerability | Microsoft | 6.5 | 17.9% | 2026-01-13 | |
| CVE-2026-44127 Local File Inclusion (LFI) and Arbitrary File Deletion | Local File Inclusion (LFI) and Arbitrary File Deletion | SEPPmail AG | 8.8 | 14.8% | 2026-05-08 | |
| CVE-2026-33309 Langflow has an Arbitrary File Write (RCE) via v2 API | Langflow has an Arbitrary File Write (RCE) via v2 API | langflow-ai | 10.0 | 13.8% | 2026-03-24 | |
| CVE-2026-27825 MCP Atlassian has an arbitrary file write leading to arbitrary code execution via unconstrained download_path in confluence_download_attachment | MCP Atlassian has an arbitrary file write leading to arbitrary code execution via unconstrained download_path in confluence_download_attachment | sooperset | 9.1 | 12.3% | 2026-03-10 | |
| CVE-2026-21249 Windows NTLM Spoofing Vulnerability | Windows NTLM Spoofing Vulnerability | Microsoft | 3.3 | 11.3% | 2026-02-10 |
Frequently Asked Questions
What is CWE-73?→
CWE-73 is external control of a file name or path. Outside input decides which file the product reads, writes or runs.
How is CWE-73 different from path traversal?→
CWE-73 covers any outside influence over filenames or paths. Path traversal (CWE-22) is the specific case of escaping a restricted directory.
How many exploited vulnerabilities are classified as CWE-73?→
This database lists 12 CVE records mapped to CWE-73 by their CVE Numbering Authority. 6 of them are in the CISA Known Exploited Vulnerabilities catalog. Examples include CVE-2026-96656, CVE-2025-33053, CVE-2025-24054.
Sources
Weakness definitions summarized from the CWE List, © The MITRE Corporation, used under the CWE Terms of Use. CWE mappings come from each CVE record's CNA. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA. Attack patterns from CAPEC 3.9, © The MITRE Corporation, used under the CAPEC Terms of Use.