BaseDraftTop 25 #10

CWE-434Unrestricted Upload of File with Dangerous Type

Category: other

Description

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

Common consequences· 1

  • Integrity / Confidentiality / Availability — Execute Unauthorized Code or Commands
    Arbitrary code execution is possible if an uploaded file is interpreted and executed as code by the recipient. This is especially true for web-server extensions such as .asp and .php because these file types are often treated as automatically executable, even when file system permissions do not specify execution. For example, in Unix environments, programs typically cannot run unless the execute bit is set, but PHP programs may be executed by the web server without directly invoking them on the operating system.

Potential mitigations· 5

  • [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]
  • [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.
  • [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]
  • [Implementation]
  • [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.

Related CAPEC attack patterns· 1

CAPEC-1

References

  1. https://cwe.mitre.org/data/definitions/434.html

Exploits (incoming)1

TypeTargetConfidenceTier
AttackPatternAccessing Functionality Not Properly Constrained by ACLscapec-1100%live

Compliance frameworks addressing this (incoming)11

TypeTargetConfidenceTier
ComplianceControlai_act-art73100%live
ComplianceControliso27001-a.8.28100%live
ComplianceControldora-art6100%live
ComplianceControliso27001-a.8.29100%live
ComplianceControlai_act-art9100%live
ComplianceControlnis2-art21d100%live
ComplianceControlcra-annexi-2100%live
ComplianceControlnis2-art21b100%live
ComplianceControlpci_dss_v4-r5100%live
ComplianceControlowasp_llm_top10-llm08100%live
ComplianceControlcis_v8-2100%live

(incoming)138

TypeTargetConfidenceTier
VulnerabilityCVE-2025-0213cve-2025-02130%live
VulnerabilityCVE-2025-0335cve-2025-03350%live
VulnerabilityCVE-2025-0341cve-2025-03410%live
VulnerabilityCVE-2025-0357cve-2025-03570%live
VulnerabilityCVE-2025-0394cve-2025-03940%live
VulnerabilityCVE-2025-0402cve-2025-04020%live
VulnerabilityCVE-2025-0463cve-2025-04630%live
VulnerabilityCVE-2025-0471cve-2025-04710%live
VulnerabilityCVE-2025-0702cve-2025-07020%live
VulnerabilityCVE-2025-0928cve-2025-09280%live
VulnerabilityCVE-2025-0984cve-2025-09840%live
VulnerabilityCVE-2025-10041cve-2025-100410%live
VulnerabilityCVE-2025-10083cve-2025-100830%live
VulnerabilityCVE-2025-10085cve-2025-100850%live
VulnerabilityCVE-2025-10147cve-2025-101470%live
VulnerabilityCVE-2025-1028cve-2025-10280%live
VulnerabilityCVE-2025-10398cve-2025-103980%live
VulnerabilityCVE-2025-10412cve-2025-104120%live
VulnerabilityCVE-2025-10424cve-2025-104240%live
VulnerabilityCVE-2025-10425cve-2025-104250%live
VulnerabilityCVE-2025-10427cve-2025-104270%live
VulnerabilityCVE-2025-10428cve-2025-104280%live
VulnerabilityCVE-2025-10447cve-2025-104470%live
VulnerabilityCVE-2025-10465cve-2025-104650%live
VulnerabilityCVE-2025-10480cve-2025-104800%live
VulnerabilityCVE-2025-10600cve-2025-106000%live
VulnerabilityCVE-2025-10615cve-2025-106150%live
VulnerabilityCVE-2025-10616cve-2025-106160%live
VulnerabilityCVE-2025-10647cve-2025-106470%live
VulnerabilityCVE-2025-1070cve-2025-10700%live

Showing top 30 of 138 by confidence. Click any target to see the full neighbourhood.

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Storage of File With Sensitive Data Under FTP Root
CWE
Improper Control of Document Type Definition
CWE
Files or Directories Accessible to External Parties
CWE
Storage of Sensitive Data in a Mechanism without Access Control
CWE
Insertion of Sensitive Information into Externally-Accessible File or Directory
CWE
Improper Access Control
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.