Reliance on File Name or Extension of Externally-Supplied File
CWE-646
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.
This could be used by attackers to cause the file to be misclassified and processed in a dangerous fashion, causing the wrong action to occur.
We track 6 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 8.7.
How this weakness is prevented
- Architecture and Design: Make decisions on the server side based on file content and not on file name or extension.
Latest Reliance on File Name or Extension of Externally-Supplied File vulnerabilities
- 8.8 High severity
rails: Reliance on File Name or Extension of Externally-Supplied File
Active Storage makes it simple to upload and reference files in cloud services and attach those files to Active Record objects. Prior to 8.1.4.1 and 8.0.5.2, ActiveStorage::Blob#open writes a blob to a tempfile whose name carries the extension of the uploaded
- 8.7 High severity
open-webui: Improper Neutralization of Input During Web Page Generation
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 CACHE_DIR/audio/transcr
- 8.7 High severity
maho: Reliance on File Name or Extension of Externally-Supplied File
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 field. By allowing file u
- 9.8 Critical severity
picklescan: Reliance on File Name or Extension of Externally-Supplied File
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 extension. Because the mali
- 7.2 High severity
Streaming Engine: Reliance on File Name or Extension of Externally-Supplied File
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.
- 8.8 High severity
imx6 bundle: Unrestricted Upload of File with Dangerous Type
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. This issue affects: AiL