CWE-646: Reliance on File Name or Extension of Externally-Supplied File, published in 2024
Filter
The product allows a file to be uploaded, but it relies on the file name or extension of the file to determine the appropriate behaviors.
What the weakness is: CWE-646 at MITRE. OWASP Top 10: A06:2025 Insecure Design. All weaknesses
Related attack patterns (CAPEC): 1
- CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
The attack patterns MITRE's CAPEC relates to CWE-646, as MITRE names them. Credits.
Ask an AI about CWE-646
Show the prompt
Explain CWE-646: Reliance on File Name or Extension of Externally-Supplied File and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/646.html and https://cve.bz/cve/cwe/646?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
- 9.4CVE-2024-52052wowza streaming engineEPSS 0.5%
Wowza Streaming Engine below 4.9.1 permits an authenticated Streaming Engine Manager administrator to define a custom application property and poison a stream target for high-privilege remote code execution.
- 9.8CVE-2024-38432matrix-globalservices tafnitEPSS 0.2%
Matrix Tafnit v8 - CWE-646: Reliance on File Name or Extension of Externally-Supplied File
- 8.8CVE-2023-45599ailux imx6EPSS 0.2%
A CWE-646 “Reliance on File Name or Extension of Externally-Supplied File” vulnerability in the “iec61850” functionality of the web application allows a remote authenticated attacker to upload any arbitrary type of file into the device. Th…