Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit optional multiple-file upload
-
DeliveryPrepend empty UPLOAD_ERR_NO_FILE entry
-
ExploitFileRules returns early, skips checks
-
ExecutionDisallowed file saved by app
-
ImpactRCE if stored web-accessible with script execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK
2 techniques across 2 tactics: Command and Control, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a specific application pattern, not just reachability: the app must validate an OPTIONAL multiple-file upload field using CodeIgniter4 FileRules (max_size, is_image, mime_in, ext_in, max_dims, or min_dims) WITHOUT the uploaded[field] rule, and must then save the remaining files while skipping UPLOAD_ERR_NO_FILE entries (the pattern shown in CodeIgniter's own multiple-files documentation). The bypass works by placing an empty (UPLOAD_ERR_NO_FILE) entry before a disallowed file so the rule returns success before checking it. No authentication is required (PR:N). Escalation to code execution is further gated: it occurs ONLY where uploads are stored in a web-accessible directory under client-controlled filenames with script execution enabled. Limiting factors that prevent or reduce impact: adding the uploaded[field] rule rejects the empty entry and blocks the bypass entirely; using mandatory (non-optional) uploads with uploaded[field]; or storing uploads outside the web root with generated filenames and disabled script execution. |
| Impact | Signals point to a real but conditional, mid-tier priority rather than an emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a network-reachable, low-complexity, unauthenticated flaw with no user interaction, but the impact is deliberately scoped to VI:L - low integrity only, with VC:N and VA:N - because the direct effect is that a disallowed file passes validation, not guaranteed code execution. The vendor-assigned score of 6.9 (medium) and the vuln.today decision label of 'this_month' (not act_now/emergency) are consistent with that framing. No EPSS score is provided in the input, this CVE is not listed in CISA KEV, and no confirmed public exploit code is present - only vendor/advisory references from VulnCheck and the GitHub Security Advisory. The key tension is the 'RCE' tag versus the vendor's own text: code execution is explicitly conditional ('possible only if files are stored in a web-accessible directory under client-controlled names with script execution enabled'), so the headline RCE potential applies to a narrower deployment subset than the unauthenticated-network vector alone implies. Bottom line: prioritize for teams running the specific vulnerable pattern (optional multiple-file validation without uploaded[field], then saving remaining files), especially with web-accessible upload storage; treat as routine patching elsewhere. |
| Exploit ScenarioDerived | An attacker targets an application that validates an optional multiple-file upload field with CodeIgniter4's FileRules (max_size, mime_in, ext_in, is_image, max_dims, or min_dims) but without the uploaded[field] rule. The attacker submits a multipart request where the first array entry is empty (UPLOAD_ERR_NO_FILE) and a disallowed file (e.g., a PHP script) follows; the rule returns success on the empty entry and the disallowed file is accepted and saved. No confirmed public exploit code is identified at time of analysis, and code execution follows only if the saved file lands in a web-accessible directory under a client-controlled name with script execution enabled. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
File upload validation bypass in CodeIgniter4 releases before 4.7.5 lets unauthenticated remote attackers slip a disallowed file past the framework's max_size, is_image, mime_in, ext_in, max_dims and min_dims rules whenever an optional multiple-file field is validated without the uploaded[field] rule. The attacker simply places an empty UPLOAD_ERR_NO_FILE entry ahead of the disallowed file, so FileRules returns success before examining the remaining entries; the direct impact is acceptance of a file with a forbidden type, extension, size or dimensions, with code execution possible only where the application then stores uploads in a web-accessible directory under client-controlled filenames with script execution enabled. No public exploit has been identified at time of analysis, and exploitation depends on a specific application coding pattern rather than simple reachability, which keeps this a moderated, this-month priority rather than an emergency.
RemediationAI
Upgrade to CodeIgniter4 4.7.5 or later, which is the vendor-released patch documented in GHSA-cwxp-v62r-xwx2 (https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-cwxp-v62r-xwx2). Where upgrading is not immediately possible, the advisory's workaround is to independently inspect every file in an optional multiple-file upload before saving: skip entries reporting UPLOAD_ERR_NO_FILE, reject any other upload error codes, and then apply the required type, extension, size and dimension checks to each remaining file, rather than relying on the rule's early success return. If the application's uploads are required rather than optional, adding uploaded[field] to the validation set also prevents the bypass because it rejects the empty entry - at the cost of no longer permitting genuinely absent uploads. These code-level fixes address validation only; to contain impact if an unchecked file does get through, store uploads outside the public web root, use generated rather than client-supplied filenames, and disable script execution in upload directories, each of which reduces the path from accepted file to code execution but does not substitute for the patch.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PHP expands a multiple-file upload into parallel arrays under $_FILES, and CodeIgniter4's CodeIgniter\Validation\FileRules plus the StrictRules\FileRules variant validate those entries by iterating over them. Both rule sets short-circuit: as soon as an entry carries the PHP error code UPLOAD_ERR_NO_FILE (4), the rule reports success without evaluating the entries that follow. Because a client can order the multipart parts arbitrarily, an empty part placed first causes the type, extension, size and dimension checks to be skipped for the real, disallowed file placed after it. This is a CWE-434 unrestricted upload of file with dangerous type issue arising from incomplete iteration rather than a missing check. The vulnerability class only becomes dangerous once the framework-level check is the sole control: the advisory notes that consequences depend entirely on how the application persists and serves uploads, with code execution limited to web-accessible storage directories, client-controlled filenames and enabled script execution. The presence of uploaded[field] in the validation set rejects the empty entry and therefore closes the bypass, but that rule cannot be used when the upload field is genuinely optional.
Know when Codeigniter4 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Unauthenticated network request with low attacker-side complexity (PR:N, AC:L); direct impact is an accepted disallowed file (I:L), with no confidentiality or availability effect and RCE only conditional.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
CodeIgniter4 before 4.7.5 contains a file upload validation bypass in FileRules that allows remote attackers to evade type, extension, size, and dimension checks. Attackers can place an empty UPLOAD_ERR_NO_FILE entry before a disallowed file in an optional multiple-file upload to get it accepted, potentially enabling code execution where uploads are web-accessible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Codeigniter4
View allUnauthenticated file upload validation bypass in the CodeIgniter4 PHP framework (versions prior to 4.7.4) lets a remote
SQL injection in CodeIgniter4's Query Builder deleteBatch() method (versions 4.3.0 through 4.7.3) allows user-controlled
Path traversal file write in the CodeIgniter4 PHP framework prior to 4.7.4 lets remote unauthenticated attackers place u
Remote code execution in CodeIgniter4 before 4.7.5 stems from filename-based upload validation rules that can be tricked
SQL injection in CodeIgniter4 through 4.7.5 lets unauthenticated remote attackers break out of an already-escaped string
HTTP security header spoofing in CodeIgniter4 prior to 4.7.4 allows remote unauthenticated attackers to trick the framew
PHP code injection in the CodeIgniter4 View Parser (versions before 4.7.5) lets users who can edit template source - for
Information disclosure in the CodeIgniter4 CURLRequest component before 4.7.5 can leak a previously used Authorization h
PHP code execution and unintended local file inclusion in CodeIgniter4 before 4.7.5 occur when view data is extracted in
Cross-site scripting in CodeIgniter4 before 4.7.5 allows an attacker who controls a single value rendered through the Vi
Cross-site scripting in the CodeIgniter4 form helpers - parse_form_attributes(), form_input(), form_label(), form_dropdo
EUVD-2026-141466
GHSA-qfqp-h3gm-wfxw
NVD
CVE.org
Vulnrichment
Exploit-DB