CWE-616
Weakness AllowedIncomplete Identification of Uploaded File Variables (PHP)
Abstraction: Variant · Status: Incomplete
The PHP application uses an old method for processing uploaded files by referencing the four global variables that are set for each file (e.g. $varname, $varname_size, $varname_name, $varname_type).
Dimensions
- Behavior-Property: Incomplete
- Behavior-Type: Identification
- Resource-Property: Uploaded
- Resource-Type: File Variables
- Language-Type: PHP
Mapping guidance
This CWE entry is at the Variant level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.
Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.
Relationships and members
Modes of introduction
Content history
updated Time_of_Introduction
updated Relationships, Observed_Example, Other_Notes, Taxonomy_Mappings, Weakness_Ordinalities
updated Description, Other_Notes, Potential_Mitigations
updated Other_Notes
updated Common_Consequences
updated Observed_Examples, Relationships
updated Potential_Mitigations
updated Relationships, Taxonomy_Mappings
updated Relationships
updated Relationships
updated Mapping_Notes
updated Common_Consequences, Description, Dimensions
12 vulnerabilities reference this CWE, most recent first.
GHSA-PPJV-38XC-PVPX
Vulnerability from github – Published: 2024-03-21 06:33 – Updated: 2024-08-05 21:31In MISP before 2.4.187, __uploadLogo in app/Controller/OrganisationsController.php does not properly check for a valid logo upload.
{
"affected": [],
"aliases": [
"CVE-2024-29858"
],
"database_specific": {
"cwe_ids": [
"CWE-616"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-03-21T04:15:09Z",
"severity": "CRITICAL"
},
"details": "In MISP before 2.4.187, __uploadLogo in app/Controller/OrganisationsController.php does not properly check for a valid logo upload.",
"id": "GHSA-ppjv-38xc-pvpx",
"modified": "2024-08-05T21:31:19Z",
"published": "2024-03-21T06:33:04Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-29858"
},
{
"type": "WEB",
"url": "https://github.com/MISP/MISP/commit/6a2986be6aad6b37858b4869e238f517b295c111"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-PR84-483F-RMG2
Vulnerability from github – Published: 2026-08-04 15:32 – Updated: 2026-08-04 15:32Perspective 5.0.0 contains a denial-of-service vulnerability in the VirtualServer protocol dispatcher that allows unauthenticated remote attackers to crash the server process by sending malformed or incomplete protobuf messages. Attackers can send well-formed requests such as ViewToArrowReq with no viewport set or MakeTableReq with no data field to trigger unwrap() calls on None values at nine distinct sites, causing the process to abort with SIGABRT.
{
"affected": [],
"aliases": [
"CVE-2026-67198"
],
"database_specific": {
"cwe_ids": [
"CWE-616"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-08-04T15:16:40Z",
"severity": "HIGH"
},
"details": "Perspective 5.0.0 contains a denial-of-service vulnerability in the VirtualServer protocol dispatcher that allows unauthenticated remote attackers to crash the server process by sending malformed or incomplete protobuf messages. Attackers can send well-formed requests such as ViewToArrowReq with no viewport set or MakeTableReq with no data field to trigger unwrap() calls on None values at nine distinct sites, causing the process to abort with SIGABRT.",
"id": "GHSA-pr84-483f-rmg2",
"modified": "2026-08-04T15:32:23Z",
"published": "2026-08-04T15:32:23Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-67198"
},
{
"type": "WEB",
"url": "https://christbowel.com/blog/perspective-5-0-0-five-cves"
},
{
"type": "WEB",
"url": "https://www.vulncheck.com/advisories/perspective-dos-via-virtualserver-protocol-dispatcher"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
Mitigation
Use PHP 4 or later.
Mitigation
If you must support older PHP versions, write your own version of is_uploaded_file() and run it against $HTTP_POST_FILES['userfile']))
Mitigation
For later PHP versions, reference uploaded files using the $HTTP_POST_FILES or $_FILES variables, and use is_uploaded_file() or move_uploaded_file() to ensure that you are dealing with an uploaded file.
No CAPEC attack patterns related to this CWE.