The vendor says certain filename forms can pass the is_image, mime_in, or ext_in rules despite a PHP extension. Remote code execution is possible only when the application keeps the client filename in a web-accessible directory configured to execute PHP.The vendor rates the issue Critical. Teams can use the vulnerability intelligence platform as a CVE reference while checking their own upload storage and server configuration. The application-specific conditions matter as much as the framework version when assessing exposure.
What it allows
How Does CVE-2026-142155 Bypass Upload Validation?
The CodeIgniter4 advisory says is_image and mime_in can accept filenames whose trailing dots conceal a PHP extension. Those two rules and ext_in can also accept a PHP extension before the final image extension. In both cases, the validation result may be unsafe when the application trusts the client-supplied filename for storage.
The validation bypass alone does not establish code execution. The vendor describes a second condition: the application must preserve that filename in a web-accessible directory where the server executes PHP. A team should therefore inspect both upload validation and the storage and execution policy. If the conditions align, the outcome can be remote code execution.
The advisory references earlier upload flaws, including CVE-2026-63223, but describes this 4.7.5 fix as a separate later boundary. Its CVE-2026-63220 reference is inconsistent with the current CVE-2026-63220 record, which describes an isSecure() forwarded-header issue. Treat that reference as an identifier discrepancy, not proof that the two records describe the same upload flaw.
Who is affected
Which CodeIgniter4 Deployments Need Action?
The vendor lists codeigniter4/framework releases before 4.7.5 as affected and 4.7.5 as patched. The high-impact path applies to applications that accept uploads, retain client filenames, and store them in a public directory where PHP executes. A deployment that changes one of those conditions still needs the framework fix, but its code-execution exposure differs.
Identify the running Composer package version and inspect each upload flow that uses is_image, mime_in, or ext_in. Check where files are placed and whether the web server can execute scripts there. Record these findings before changing the patch management priority for the affected application.
Upgrade to CodeIgniter4 4.7.5 or later. The vendor recommends storing uploads outside the public web root, preferably with $file->store(). For necessary public uploads, it recommends disabling script execution and assigning random names with $file->move($path, $file->getRandomName()). If client names must remain, reject trailing dots and PHP extensions in any dot-separated filename part.
Timeline
- 2026-10-09
CodeIgniter4 published GHSA-4hwf-v4mp-hf6c and listed 4.7.5 as patched.
- 2026-12-02
The CVE-2026-142155 CNA record was published for this upload validation bypass.
What to do
-
Inventory upload paths
Find applications running codeigniter4/framework before 4.7.5. Review upload rules, filename handling, destination directories, and PHP execution policy for each upload path.
-
Upgrade the framework
Install CodeIgniter4 4.7.5 or later. On each serving instance, run `composer show codeigniter4/framework` in the deployed project and confirm the installed version is at least 4.7.5. For manual installs, read `CodeIgniterCodeIgniter::CI_VERSION` from the running application and compare it with 4.7.5.
-
Remove execution conditions
Follow the vendor guidance: store uploads outside the web root where possible. If public storage is required, disable script execution and use random stored filenames.
-
Check files and configuration
Review public upload directories for unexpected executable files and confirm the server blocks script execution there. This is a defensive check inferred from the vendor's described impact.
What Brandefense can do
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-142155 in Brandefense Atlas
The Atlas record of CVE-2026-142155: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
Frequently Asked Questions
Does CVE-2026-142155 always allow remote code execution?
No. The vendor says code execution requires a retained client filename in a web-accessible directory whose server configuration executes PHP.
Which CodeIgniter4 version fixes this bypass?
The vendor lists 4.7.5 as the patched version. Verify that every serving instance actually runs 4.7.5 or later after updating.
Is CVE-2026-63223 the same record?
No. The vendor's CVE-2026-63223 advisory covers an earlier upload validation flaw patched in 4.7.4; this profile covers the later 4.7.5 boundary.
Sources
- Upload validation bypass via trailing dots and embedded PHP extensionsCodeIgniter4
- CVE-2026-142155 CNA recordVulnCheck via CVE.org
- CVE-2026-63223 CodeIgniter4 advisoryCodeIgniter4
- CVE-2026-63220 NVD recordNVD
- Upgrading CodeIgniter4CodeIgniter4
- Composer show commandComposer