cve.bz

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

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

  1. 8.8CVE-2021-34639w3eden download managerEPSS 0.6%

    Authenticated File Upload in WordPress Download Manager <= 3.1.24 allows authenticated (Author+) users to upload files with a double extension, e.g. "payload.php.png" which is executable in some configurations. This issue affects: WordPres…