Skip to content
OpenAdvisories

Weakness (CWE)

CWE-646: Reliance on File Name or Extension of Externally-Supplied File

Base Incomplete

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.

More detail

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.

How to prevent it (1 mitigation)
  1. Architecture and Design

    Make decisions on the server side based on file content and not on file name or extension.

Source: MITRE CWE-646

11 results · Feed

  • High 8.7

    Open WebUI: Stored XSS via attacker-controlled file extension in /api/v1/audio/transcriptions

    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/transc…

  • Medium 4.3

    Cisco Enterprise Chat and Email Lite Agent File Upload Vulnerability

    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 a user account with …

  • Medium 6.6

    Zoom Workplace VDI Plugin macOS Universal Installer - Symlink Following

    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 network access.

  • Medium 4.3

    Sauter: Arbitrary File Upload

    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.

  • High 8.7

    Maho Vulnerable to Authenticated Remote Code Execution via File Upload

    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 …

  • Medium 5.3

    picklescan - Security scanning bypass via non-standard file extensions

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

  • Medium 5.3
    CVE-2025-1716 Public exploit

    picklescan - Security scanning bypass via 'pip main'

    picklescan before 0.0.21 does not treat 'pip' as an unsafe global. An attacker could craft a malicious model that uses Pickle to pull in a malicious PyPI package (hosted, for example, on pypi.org or GitHub) via `pip.main()`. Because pip is not a restricted gl…

  • Critical 9.4

    Stream Target Remote Code Execution in Wowza Streaming Engine

    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.

  • Medium 5.5

    Matrix – Tafnit v8 CWE-646: Reliance on File Name or Extension of Externally-Supplied File

    Matrix Tafnit v8 - CWE-646: Reliance on File Name or Extension of Externally-Supplied File

  • Medium 5.5

    A CWE-646 “Reliance on File Name or Extension of Externally-Supplied File” vulnerability in the “iec61850” functionalit…

  • High 7.5

    WordPress Download Manager <= 3.1.24 Authenticated Arbitrary File Upload

    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: WordPress Download Manager v…