Skip to main content

CodeIgniter4 CVE-2026-142155

| EUVDEUVD-2026-141463 CRITICAL
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-12-02 VulnCheck GHSA-q5xr-c38q-hfh2
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Locate upload endpoint using is_image/mime_in/ext_in
  2. Delivery
    Craft filename with trailing dots concealing PHP extension
  3. Exploit
    Bypass upload validation rules
  4. Execution
    File preserved in PHP-executing web directory
  5. Persist
    Request stored file to run PHP
  6. Impact
    Remote code execution as web process

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 the hosting application to (1) accept uploads validated via the is_image, mime_in, or ext_in rules and (2) preserve the client-supplied filename and (3) store it in a web-accessible directory whose server configuration executes PHP. All three must hold simultaneously. The flaw is limited by the fact that CodeIgniter4's recommended patterns defeat it: storing uploads outside the public web root via $file->store(), renaming with $file->getRandomName(), or disabling script execution in the upload directory each prevent exploitation, so applications following the framework's documented guidance are not affected. No authentication or user interaction is needed against a vulnerable configuration (PR:N/UI:N in the supplied vector), making applications that retain original filenames in executable paths remotely and unauthenticated-exploitable.

Impact

Multiple signals converge on elevated but conditional risk. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) with full vulnerable-system impact (VC:H/VI:H/VA:H) scores 9.3 and the vuln.today priority is 'act_now', reflecting that successful exploitation yields remote code execution reachable over the network without privileges or user interaction. However, the description imposes a material real-world precondition that the raw CVSS does not capture: exploitation only works 'when applications keep client-supplied filenames in a web directory that executes PHP' - a deployment/coding pattern that CodeIgniter4's own documentation advises against. This is the central tension: the framework flaw is network-reachable and unauthenticated, but whether a given installation is actually exploitable depends on application-level file-handling choices beyond the attacker's control, so the AT:N/AC:L vendor rating arguably understates the conditions required. No EPSS score, KEV listing, or confirmed working exploit code is present in the input; the references are vendor/coordinator advisories (GHSA, VulnCheck), not proof-of-concept exploits. Net assessment: a genuine high-priority patch item for teams running affected CodeIgniter4 apps that preserve client filenames in executable web paths, but not evidence of mass active exploitation - treat as 'patch promptly per the act_now decision' rather than 'confirmed in-the-wild emergency.'

Exploit ScenarioDerived

A remote, unauthenticated attacker targets a CodeIgniter4 application that validates uploads with is_image, mime_in, or ext_in and preserves the client-supplied filename in a web-accessible, PHP-executing directory. The attacker submits a file whose name uses trailing dots to conceal a PHP extension, or places a PHP extension before the final image extension, bypassing the validation rules; they then request the stored file's URL to execute arbitrary PHP on the server. No public exploit code is identified in the sources, though two related CVE advisories (CVE-2026-63223, CVE-2026-63220) detail the same bypass classes.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available

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

Alert me

AnalysisAIv1 – Dec 02, 2026

Remote code execution in CodeIgniter4 before 4.7.5 stems from filename-based upload validation rules that can be tricked: is_image and mime_in accept names whose trailing dots conceal a PHP extension, and is_image, mime_in and ext_in all accept a PHP extension placed ahead of the final image extension. Unauthenticated remote attackers (PR:N/UI:N) can submit such a file, but code execution only results when the receiving application preserves the client-supplied filename, stores it in a web-accessible directory, and the server configuration executes PHP there - the independent assessment rates attack complexity high precisely because all three deployment conditions must hold at once, and recommended CodeIgniter4 patterns (store() outside the web root, getRandomName()) defeat it. The priority label is act now; no public exploit code has been identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to CodeIgniter4 v4.7.5 or later. If the upgrade cannot be applied immediately, the vendor documents three workarounds, each with a trade-off: store uploads outside the public web root, preferably via $file->store(), which removes web reachability but requires an application-side download/serving path; if uploads must remain public, disable script execution in the upload directory and move files with $file->move($path, $file->getRandomName()), which discards the original filename and may break user-facing naming or downstream references to it; if client filenames must be preserved, reject trailing dots and PHP extensions in any dot-separated part of the filename before saving, which adds custom validation logic that must be maintained alongside framework updates. The authoritative guidance is in the advisory at https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-4hwf-v4mp-hf6c, and the related fixes for CVE-2026-63223 and CVE-2026-63220 should be reviewed at the same time since they cover the sibling rule bypasses.

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

The issue is CWE-434 (Unrestricted Upload of File with Dangerous Type) in the CodeIgniter4 framework's UploadedFile validation layer, distributed as the Composer package composer/codeigniter4/framework and mapped by CPE cpe:2.3:a:codeigniter4:codeigniter4:*:*:*:*:*:*:*:* for every release below 4.7.5. The is_image and mime_in rules, which inspect the supplied filename when validating an upload, can be satisfied by a name whose trailing dots hide a PHP extension, and both those rules plus ext_in can be satisfied when a PHP extension appears before the final image extension. Because the rules reason about the name rather than guaranteeing a safe on-disk name, the framework's verdict does not reflect what a PHP-enabled web server may later resolve the file to; the practical outcome therefore depends on how the hosting server maps filenames to handlers and on whether the application writes the original client name into an executable path. The flaw is a validation-logic weakness rather than a memory-safety bug, so the trigger path is the upload request itself once a vulnerable configuration is in place; the assessment's AC:H reflects the deployment preconditions (vulnerable rule used, client filename preserved, PHP execution enabled in the upload directory) rather than attacker-controlled grooming.

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 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.1 HIGH

Network-reachable RCE with no attacker privileges (PR:N/UI:N), but AC:H because exploitation depends on an application preserving client filenames in a PHP-executing web directory - a condition beyond the attacker's control.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/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
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Dec 02, 2026 - 16:02 EUVD
CVE Published
Dec 02, 2026 - 14:37 cve.org
CRITICAL 9.3

DescriptionCVE.org

CodeIgniter4 before 4.7.5 has an upload validation bypass: the is_image and mime_in rules accept filenames whose trailing dots conceal a PHP extension, and these rules and ext_in accept a PHP extension before the final image extension. Attackers can upload such files to achieve remote code execution when applications keep client-supplied filenames in a web directory that executes PHP.

Technical POC Analysis

Evidence note: the supplied advisory does not include a patch diff, commit, or CVE ID.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A critical remote code execution vulnerability (CVE-2026-142155, CVSS 9.3) affects CodeIgniter4 before version 4.7.5. The flaw could allow unauthenticated attackers to upload malicious files that, under certain deployment configurations, lead to code execution. However, exploitation requires specific conditions: the application must preserve client-supplied filenames, store uploads in a web-accessible directory, and have PHP execution enabled there. Leadership should prioritize remediation for internet-facing applications built on CodeIgniter4, as successful exploitation could lead to full system compromise.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include ensuring uploaded files are stored outside the web root, using randomized filenames (e.g., getRandomName()), and disabling PHP execution in upload directories. Additionally, deploy WAF rules to block suspicious filenames with multiple extensions or trailing dots, and restrict file upload capabilities to trusted users where possible.

Threat Intelligence Overview

Prevalence
Medium
popular PHP MVC framework, common in web apps but not ubiquitous
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 CRITICAL
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
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-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-142152 MEDIUM
6.9 Dec 02

File upload validation bypass in CodeIgniter4 releases before 4.7.5 lets unauthenticated remote attackers slip a disallo

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