cve.bz

CWE-646: Reliance on File Name or Extension of Externally-Supplied File, published in 2023

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 promptExplain 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

No records match.