Skip to main content

CodeIgniter4 EUVDEUVD-2026-141466

| CVE-2026-142152 MEDIUM
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-12-02 VulnCheck GHSA-qfqp-h3gm-wfxw
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit optional multiple-file upload
  2. Delivery
    Prepend empty UPLOAD_ERR_NO_FILE entry
  3. Exploit
    FileRules returns early, skips checks
  4. Execution
    Disallowed file saved by app
  5. Impact
    RCE 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

CodeIgniter4 0 <4.7.5

Affected Packages

euvd codeigniter4 fix: 4.7.5

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

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Dec 02, 2026 - 16:02 EUVD

DescriptionCVE.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

Prevalence
Medium
popular PHP MVC framework, common but far below ubiquitous frameworks
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2026-63223 CRITICAL POC
9.8 Jul 31

Unauthenticated file upload validation bypass in the CodeIgniter4 PHP framework (versions prior to 4.7.4) lets a remote

CVE-2026-63221 CRITICAL POC
9.4 Jul 31

SQL injection in CodeIgniter4's Query Builder deleteBatch() method (versions 4.3.0 through 4.7.3) allows user-controlled

CVE-2026-63222 HIGH POC
7.5 Jul 31

Path traversal file write in the CodeIgniter4 PHP framework prior to 4.7.4 lets remote unauthenticated attackers place u

CVE-2026-142155 CRITICAL
9.3 Dec 02

Remote code execution in CodeIgniter4 before 4.7.5 stems from filename-based upload validation rules that can be tricked

CVE-2026-142150 CRITICAL
9.2 Dec 02

SQL injection in CodeIgniter4 through 4.7.5 lets unauthenticated remote attackers break out of an already-escaped string

CVE-2026-63220 MEDIUM POC
4.8 Jul 31

HTTP security header spoofing in CodeIgniter4 prior to 4.7.4 allows remote unauthenticated attackers to trick the framew

CVE-2026-142154 HIGH
8.7 Dec 02

PHP code injection in the CodeIgniter4 View Parser (versions before 4.7.5) lets users who can edit template source - for

CVE-2026-142151 HIGH
8.2 Dec 02

Information disclosure in the CodeIgniter4 CURLRequest component before 4.7.5 can leak a previously used Authorization h

CVE-2026-142153 HIGH
7.7 Dec 02

PHP code execution and unintended local file inclusion in CodeIgniter4 before 4.7.5 occur when view data is extracted in

CVE-2026-130845 MEDIUM
5.3 Nov 17

Cross-site scripting in CodeIgniter4 before 4.7.5 allows an attacker who controls a single value rendered through the Vi

CVE-2026-142138 MEDIUM
5.3 Dec 02

Cross-site scripting in the CodeIgniter4 form helpers - parse_form_attributes(), form_input(), form_label(), form_dropdo

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy