CWE-646: Reliance on File Name or Extension of Externally-Supplied File
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
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.
- 8.7CVE-2026-45315EPSS 0.2%
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.3, the audio transcription upload endpoint takes the file extension from the user-supplied filename and saves the file under CA…
- 4.3CVE-2026-20172EPSS 0.1%
A vulnerability in the Lite Agent feature of Cisco Enterprise Chat and Email (ECE) could allow an authenticated, remote attacker to conduct browser-based attacks. To exploit this vulnerability, the attacker must have valid credentials for …
- 6.5CVE-2025-30662EPSS 0.1%
Symlink following in the installer for the Zoom Workplace VDI Plugin macOS Universal installer before version 6.3.14, 6.4.14, and 6.5.10 in their respective tracks may allow an authenticated user to conduct a disclosure of information via …
- 4.3CVE-2025-41720EPSS 0.2%
A low privileged remote attacker can upload arbitrary data masked as a png file to the affected device using the webserver API because only the file extension is verified.
- 8.7CVE-2025-58449EPSS 0.3%
Maho is a free and open source ecommerce platform. In Maho prior to 25.9.0, an authenticated staff user with access to the `Dashboard` and `Catalog\Manage Products` permissions can create a custom option on a listing with a file input fiel…
- 5.3CVE-2025-1889EPSS 0.4%
picklescan before 0.0.22 only considers standard pickle file extensions in the scope for its vulnerability scan. An attacker could craft a malicious model that uses Pickle and include a malicious pickle file with a non-standard file extens…
- 9.4CVE-2024-52052EPSS 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-38432EPSS 0.2%
Matrix Tafnit v8 - CWE-646: Reliance on File Name or Extension of Externally-Supplied File
- 8.8CVE-2023-45599EPSS 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…
- 8.8CVE-2021-34639EPSS 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…