cve.bz

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

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-2026-126186railsEPSS 0.5%

    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 exten…

  2. 8.7CVE-2026-45315openwebui open webuiEPSS 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…

  3. 4.3CVE-2026-20172cisco cisco enterprise chat and emailEPSS 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 …