Skip to content
OpenAdvisories

Weakness (CWE)

CWE-434: Unrestricted Upload of File with Dangerous Type

Base Draft

The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.

How to prevent it (8 mitigations)
  1. Architecture and Design

    Generate a new, unique filename for an uploaded file instead of using the user-supplied filename, so that no external input is used at all.[REF-422] [REF-423]

  2. Architecture and Design

    When the set of acceptable objects, such as filenames or URLs, is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames or URLs, and reject all other inputs.

  3. Architecture and Design

    Consider storing the uploaded files outside of the web document root entirely. Then, use other mechanisms to deliver the files dynamically. [REF-423]

  4. Implementation

    Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.

    When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."

    Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

    For example, limiting filenames to alphanumeric characters can help to restrict the introduction of unintended file extensions.

  5. Architecture and Design

    Define a very limited set of allowable extensions and only generate filenames that end in these extensions. Consider the possibility of XSS (CWE-79) before allowing .html or .htm file types.

  6. Implementation

    Ensure that only one extension is used in the filename. Some web servers, including some versions of Apache, may process files based on inner extensions so that "filename.php.gif" is fed to the PHP interpreter.[REF-422] [REF-423]

  7. Implementation

    When running on a web server that supports case-insensitive filenames, perform case-insensitive evaluations of the extensions that are provided.

  8. Architecture and Design

    For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.

Source: MITRE CWE-434

3,440 results · Feed

  • Critical 9.3
    CVE-2012-10045 Public exploit

    XODA 0.4.5 Arbitrary PHP File Upload

    XODA version 0.4.5 contains an unauthenticated file upload vulnerability that allows remote attackers to execute arbitrary PHP code on the server. The flaw resides in the upload functionality, which fails to properly validate or restrict uploaded file types. …

  • Critical 9.3
    CVE-2012-10049 Public exploit

    WebPageTest Arbitrary PHP File Upload RCE

    WebPageTest version 2.6 and earlier contains an arbitrary file upload vulnerability in the resultimage.php script. The application fails to validate or sanitize user-supplied input before saving uploaded files to a publicly accessible directory. This flaw all…

  • High 8.7
    CVE-2012-10042 Public exploit

    Sflog! CMS 1.0 Arbitrary File Upload RCE

    Sflog! CMS 1.0 contains an authenticated arbitrary file upload vulnerability in the blog management interface. The application ships with default credentials (admin:secret) and allows authenticated users to upload files via manage.php. The upload mechanism fa…

  • Critical 9.3
    CVE-2012-10036 Public exploit

    Project Pier <= 0.8.8 Arbitrary File Upload RCE

    Project Pier 0.8.8 and earlier contains an unauthenticated arbitrary file upload vulnerability in tools/upload_file.php. The upload handler fails to validate the file type or enforce authentication, allowing remote attackers to upload malicious PHP files dire…

  • Critical 10.0
    CVE-2012-10044 Public exploit

    MobileCartly 1.0 savepage.php Arbitrary File Creation

    MobileCartly version 1.0 contains an arbitrary file creation vulnerability in the savepage.php script. The application fails to perform authentication or authorization checks before invoking file_put_contents() on attacker-controlled input. An unauthenticated…

  • Critical 9.3
    CVE-2012-10052 Public exploit

    EGallery 1.2 Arbitrary PHP File Upload

    EGallery version 1.2 contains an unauthenticated arbitrary file upload vulnerability in the uploadify.php script. The application fails to validate file types or enforce authentication, allowing remote attackers to upload malicious PHP files directly into the…

  • Critical 9.3
    CVE-2012-10050 Public exploit

    CuteFlow <= 2.11.2 Arbitrary File Upload RCE

    CuteFlow version 2.11.2 and earlier contains an arbitrary file upload vulnerability in the restart_circulation_values_write.php script. The application fails to validate or restrict uploaded file types, allowing unauthenticated attackers to upload arbitrary P…

  • Medium 6.4

    In Agora Foundation Agora fall23-Alpha1 before 690ce56, there is XSS via a profile picture to server/controller/userCon…

  • Critical 9.8

    CL4/6NX Plus and CL4/6NX-J Plus (Japan model) with the firmware versions prior to 1.15.5-r1 allow crafted dangerous fil…

  • High 8.1
    CVE-2025-50286 Public exploit EPSS 16%

    A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plu…

  • High 8.2

    An unrestricted file upload vulnerability in Vedo Suite version 2024.17 allows remote authenticated attackers to write …

  • Critical 9.3
    CVE-2012-10027 Public exploit

    WordPress Plugin WP-Property <= 1.35.0 PHP File Upload

    WP-Property plugin for WordPress up to and including version 1.35.0 contains an unauthenticated file upload vulnerability in the third-party `uploadify.php` script. A remote attacker can upload arbitrary PHP files to a temporary directory without authenticati…

  • Critical 10.0
    CVE-2012-10026 Public exploit

    WordPress Plugin Asset-Manager <= 2.0 PHP File Upload

    The WordPress plugin Asset-Manager version 2.0 and below contains an unauthenticated arbitrary file upload vulnerability in upload.php. The endpoint fails to properly validate and restrict uploaded file types, allowing remote attackers to upload malicious PHP…

  • Critical 10.0
    CVE-2013-10066 Public exploit

    Kordil EDMS v2.2.60rc3 Unauthenticated Arbitrary File Upload

    An unauthenticated arbitrary file upload vulnerability exists in Kordil EDMS v2.2.60rc3. The application exposes an upload endpoint (users_add.php) that allows attackers to upload files to the /userpictures/ directory without authentication. This flaw enables…

  • Critical 9.4
    CVE-2013-10067 Public exploit

    Glossword 1.8.8 - 1.8.12 Arbitrary File Upload RCE

    Glossword versions 1.8.8 through 1.8.12 contain an authenticated arbitrary file upload vulnerability. When deployed as a standalone application, the administrative interface (gw_admin.php) allows users with administrator privileges to upload files to the gw_t…

  • Critical 9.3
    CVE-2012-10030 Public exploit

    FreeFloat FTP Server Arbitrary File Upload

    FreeFloat FTP Server contains multiple critical design flaws that allow unauthenticated remote attackers to upload arbitrary files to sensitive system directories. The server accepts empty credentials, defaults user access to the root of the C:\ drive, and im…

  • Critical 9.3
    CVE-2014-125113 Public exploit

    Dell/Quest KACE K1000 Unauthenticated File Upload RCE

    An unrestricted file upload vulnerability exists in Dell (acquired by Quest) KACE K1000 System Management Appliance version 5.0 - 5.3, 5.4 prior to 5.4.76849, and 5.5 prior to 5.5.90547 in the download_agent.php endpoint. An attacker can upload arbitrary PHP …

  • High 7.5

    WP Import Export Lite <= 3.9.29 - Authenticated (Subscriber+) Arbitrary File Upload

    The WP Import Export Lite plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the 'wpie_parse_upload_data' function in all versions up to, and including, 3.9.29. This makes it possible for authenticated attacker…

  • High 7.5

    WP Import Export Lite <= 3.9.28 - Authenticated (Subscriber+) Arbitrary File Upload

    The WP Import Export Lite plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the 'wpie_tempalte_import' function in all versions up to, and including, 3.9.28. This makes it possible for authenticated attackers,…

  • Medium 6.5
    CVE-2025-52078 Public exploit

    File upload vulnerability in Writebot AI Content Generator SaaS React Template thru 4.0.0, allowing remote attackers to…

  • Medium 6.3

    Exrick xboot UploadController.java upload unrestricted upload

    A vulnerability was found in Exrick xboot up to 3.3.4. It has been declared as critical. This vulnerability affects the function Upload of the file xboot-fast/src/main/java/cn/exrick/xboot/modules/base/controller/common/UploadController.java. The manipulation…

  • Critical 9.3
    CVE-2013-10054 Public exploit

    LibrettoCMS File Manager Arbitrary File Upload

    An unauthenticated arbitrary file upload vulnerability exists in LibrettoCMS version 1.1.7 (and possibly earlier) contains an unauthenticated arbitrary file upload vulnerability in its File Manager plugin. The upload handler located at adm/ui/js/ckeditor/plug…

  • Critical 9.8

    An arbitrary file upload vulnerability in ZKEACMS v4.1 allows attackers to execute arbitrary code via a crafted file.

  • Medium 6.4
    CVE-2025-54962 Public exploit

    /edit-user in webserver in OpenPLC Runtime 3 through 9cd8f1b allows authenticated users to upload arbitrary files (such…

  • Medium 6.3

    code-projects Kitchen Treasure userregistration.php unrestricted upload

    A vulnerability, which was classified as critical, was found in code-projects Kitchen Treasure 1.0. This affects an unknown part of the file /userregistration.php. The manipulation of the argument photo leads to unrestricted upload. It is possible to initiate…

  • High 8.7
    CVE-2013-10044 Public exploit

    OpenEMR ≤ 4.1.1 SQL Injection Privilege Escalation and RCE

    An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to extract administrator credentials and subsequently escalate privileges. Once elevated, the attacker can exploit an unrestricted file uploa…

  • Critical 9.3
    CVE-2013-10047 Public exploit

    MiniWeb <= Build 300 Arbitrary File Upload

    An unrestricted file upload vulnerability exists in MiniWeb HTTP Server <= Build 300 that allows unauthenticated remote attackers to upload arbitrary files to the server’s filesystem. By abusing the upload handler and crafting a traversal path, an attacker ca…

  • Critical 9.3
    CVE-2013-10055 Public exploit

    Havalite CMS Arbitary File Upload RCE

    An unauthenticated arbitrary file upload vulnerability exists in Havalite CMS version 1.1.7 (and possibly earlier) in the upload.php script. The application fails to enforce proper file extension validation and authentication checks, allowing remote attackers…

  • High 8.1

    BerqWP <= 2.2.42 - Unauthenticated Arbitrary File Upload

    The BerqWP – Automated All-In-One Page Speed Optimization for Core Web Vitals, Cache, CDN, Images, CSS, and JavaScript plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation via the store_javascript_cache.php file in …

  • High 7.2

    Emlog Pro V2.5.7 is vulnerable to Unrestricted Upload of File with Dangerous Type via /emlog/admin/plugin.php?action=up…

  • Critical 9.2
    CVE-2014-125126 Public exploit

    Simple E-Document Arbitrary File Upload RCE

    An unrestricted file upload vulnerability exists in Simple E-Document versions 3.0 to 3.1 that allows an unauthenticated attacker to bypass authentication by sending a specific cookie header (access=3) with HTTP requests. The application’s upload mechanism fa…

  • Critical 9.3
    CVE-2013-10034 Public exploit

    Kaseya < 6.3.0.2 uploadImage.asp Arbitrary File Upload RCE

    An unrestricted file upload vulnerability exists in Kaseya KServer versions prior to 6.3.0.2. The uploadImage.asp endpoint allows unauthenticated users to upload files to arbitrary paths via a crafted filename parameter in a multipart/form-data POST request. …

  • Critical 9.3
    CVE-2013-10038 Public exploit

    FlashChat Arbitrary File Upload RCE

    An unauthenticated arbitrary file upload vulnerability exists in FlashChat versions 6.0.2 and 6.0.4 through 6.0.8. The upload.php endpoint fails to properly validate file types and authentication, allowing attackers to upload malicious PHP scripts. Once uploa…

  • Critical 10.0
    CVE-2013-10040 Public exploit

    ClipBucket <= 2.6 ofc_upload_image.php Arbitrary File Upload RCE

    ClipBucket version 2.6 and earlier contains a critical vulnerability in the ofc_upload_image.php script located at /admin_area/charts/ofc-library/. This endpoint allows unauthenticated users to upload arbitrary files, including executable PHP scripts. Once up…

  • Critical 9.5
    CVE-2013-10043 Public exploit

    Astium VOIP PBX <= 2.1 SQL Injection File Upload RCE

    A vulnerability exists in OAstium VoIP PBX astium-confweb-2.1-25399 and earlier, where improper input validation in the logon.php script allows an attacker to bypass authentication via SQL injection. Once authenticated as an administrator, the attacker can up…

  • Medium 4.7

    Campcodes Online Hotel Reservation System edit_room.php unrestricted upload

    A vulnerability classified as critical has been found in Campcodes Online Hotel Reservation System 1.0. This affects an unknown part of the file /admin/edit_room.php. The manipulation of the argument photo leads to unrestricted upload. It is possible to initi…

  • Medium 6.5

    Multiple versions of PowerCMS allow unrestricted upload of dangerous files. If a product administrator accesses a malic…

  • High 8.8
    CVE-2025-7847 Public exploit

    AI Engine 2.9.3 - 2.9.4 - Authenticated (Subscriber+) Arbitrary File Upload

    The AI Engine plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the rest_simpleFileUpload() function in versions 2.9.3 and 2.9.4. This makes it possible for authenticated attackers, with Subscriber-level acces…

  • Medium 6.3

    openviglet shio ShStaticFileAPI.java shStaticFileUpload unrestricted upload

    A vulnerability classified as critical has been found in openviglet shio up to 0.3.8. Affected is the function shStaticFileUpload of the file shio-app/src/main/java/com/viglet/shio/api/staticfile/ShStaticFileAPI.java. The manipulation of the argument filename…

  • High 8.8

    Ventem|e-School - Arbitrary File Upload

    The e-School from Ventem has a Arbitrary File Upload vulnerability, allowing unauthenticated remote attackers to upload and execute web shell backdoors, thereby enabling arbitrary code execution on the server.