BaseDraft

CWE-73External Control of File Name or Path

Category: other

Description

The product allows user input to control or influence paths or file names that are used in filesystem operations.

Common consequences· 3

  • Integrity / Confidentiality — Read Files or Directories, Modify Files or Directories
    The application can operate on unexpected files. Confidentiality is violated when the targeted filename is not directly readable by the attacker.
  • Integrity / Confidentiality / Availability — Modify Files or Directories, Execute Unauthorized Code or Commands
    The application can operate on unexpected files. This may violate integrity if the filename is written to, or if the filename is for a program or other form of executable code.
  • Availability — DoS: Crash, Exit, or Restart, DoS: Resource Consumption (Other)
    The application can operate on unexpected files. Availability can be violated if the attacker specifies an unexpected file that the application modifies. Availability can also be affected if the attacker specifies a filename for a large file, or points to a special device or a file that does not have the format that the application expects.

Potential mitigations· 5

  • [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]
  • [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]
  • [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).

Related CAPEC attack patterns· 8

CAPEC-13CAPEC-267CAPEC-64CAPEC-72CAPEC-76CAPEC-78CAPEC-79CAPEC-80

References

  1. https://cwe.mitre.org/data/definitions/73.html

Exploits (incoming)8

TypeTargetConfidenceTier
AttackPatternManipulating Web Input to File System Callscapec-76100%live
AttackPatternSubverting Environment Variable Valuescapec-13100%live
AttackPatternUsing Slashes and URL Encoding Combined to Bypass Validation Logiccapec-64100%live
AttackPatternUsing Escaped Slashes in Alternate Encodingcapec-78100%live
AttackPatternUsing UTF-8 Encoding to Bypass Validation Logiccapec-80100%live
AttackPatternUsing Slashes in Alternate Encodingcapec-79100%live
AttackPatternURL Encodingcapec-72100%live
AttackPatternLeverage Alternate Encodingcapec-267100%live

Compliance frameworks addressing this (incoming)1

TypeTargetConfidenceTier
ComplianceControlowasp_api_top10-api07100%live

(incoming)88

TypeTargetConfidenceTier
VulnerabilityCVE-2025-0105cve-2025-01050%live
VulnerabilityPalo Alto Networks PAN-OS File Read Vulnerabilitycve-2025-01110%live
VulnerabilityCVE-2025-0211cve-2025-02110%live
VulnerabilityCVE-2025-0452cve-2025-04520%live
VulnerabilityCVE-2025-0851cve-2025-08510%live
VulnerabilityCVE-2025-10058cve-2025-100580%live
VulnerabilityCVE-2025-10134cve-2025-101340%live
VulnerabilityCVE-2025-10494cve-2025-104940%live
VulnerabilityCVE-2025-12529cve-2025-125290%live
VulnerabilityCVE-2025-13322cve-2025-133220%live
VulnerabilityCVE-2025-2004cve-2025-20040%live
VulnerabilityMicrosoft Windows NTLM Hash Disclosure Spoofing Vulnerabilitycve-2025-240540%live
VulnerabilityCVE-2025-2409cve-2025-24090%live
VulnerabilityCVE-2025-26646cve-2025-266460%live
VulnerabilityCVE-2025-27147cve-2025-271470%live
VulnerabilityCVE-2025-29708cve-2025-297080%live
VulnerabilityCVE-2025-29709cve-2025-297090%live
VulnerabilityCVE-2025-30201cve-2025-302010%live
Vulnerability Microsoft Windows External Control of File Name or Path Vulnerabilitycve-2025-330530%live
VulnerabilityCVE-2025-33117cve-2025-331170%live
VulnerabilityCVE-2025-3812cve-2025-38120%live
VulnerabilityCVE-2025-43951cve-2025-439510%live
VulnerabilityCVE-2025-4603cve-2025-46030%live
VulnerabilityCVE-2025-4674cve-2025-46740%live
VulnerabilityCVE-2025-46762cve-2025-467620%live
VulnerabilityCVE-2025-53912cve-2025-539120%live
VulnerabilityCVE-2025-5393cve-2025-53930%live
VulnerabilityCVE-2025-54945cve-2025-549450%live
VulnerabilityCVE-2025-58158cve-2025-581580%live
VulnerabilityCVE-2025-59291cve-2025-592910%live

Showing top 30 of 88 by confidence. Click any target to see the full neighbourhood.

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Insertion of Sensitive Information into Externally-Accessible File or Directory
CWE
Files or Directories Accessible to External Parties
CWE
Storage of Sensitive Data in a Mechanism without Access Control
CWE
Insecure Operation on Windows Junction / Mount Point
CWE
Relative Path Traversal
CWE
Untrusted Search Path
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.