CWE-646: Reliance on File Name or Extension of Externally-Supplied File
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.
Last updated
Overview
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.
Real-world CVEs
12 recorded CVEs are caused by CWE-646 (Reliance on File Name or Extension of Externally-Supplied File). The highest-severity and most recent are shown first. 2 new CWE-646 CVEs have been recorded so far in 2026 (4 in 2025).
- CVE-2024-38432
Matrix – Tafnit v8 CWE-646: Reliance on File Name or Extension of Externally-Supplied File
Critical · CVSS 9.8 · EPSS 13th2024-07-30 - CVE-2024-52052
Stream Target Remote Code Execution in Wowza Streaming Engine
Critical · CVSS 9.4 · EPSS 47th2024-11-21 - CVE-2026-126186
Active Storage: Possible arbitrary file read and remote code execution in Active Storage video previews, analysis and image processing