A critical upload validation bypass in CodeIgniter4 before 4.7.5 can let attackers upload PHP files that look like images and run code on affected applications.
What Is It
CVE-2026-142155 is an upload validation bypass in the CodeIgniter4 framework, classified as CWE-434 (unrestricted upload of a file with a dangerous type). According to the NVD description, the framework's upload validation rules fail in two ways:
- The
is_imageandmime_inrules accept filenames where trailing dots hide a PHP extension. - The
is_image,mime_inandext_inrules accept a PHP extension placed before the final image extension.
An attacker can use these files to get past validation that is meant to accept only safe uploads.
Why It Matters
VulnCheck rates the flaw 9.8 (CRITICAL) under CVSS 3.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and 9.3 (CRITICAL) under CVSS 4.0. The vector describes an attack over the network with low complexity, no privileges and no user interaction, and high impact to confidentiality, integrity and availability.
The NVD description says attackers can achieve remote code execution when an application keeps client-supplied filenames and stores uploads in a web directory that executes PHP. Applications that rely on these built-in rules as their main upload control are the most exposed.
CISA's SSVC assessment (CISA Coordinator) lists exploitation as "none," automatable as "yes" and technical impact as "total." The CVE is not listed in the CISA KEV catalog, so KEV does not currently confirm active exploitation of this CVE.
What's Vulnerable
- Vendor: codeigniter4
- Product: CodeIgniter4
- Affected: all versions before 4.7.5 (semver)
- Unaffected: 4.7.5
The RCE outcome depends on how the application is deployed. Per the description, the risk applies when uploaded files keep their client-supplied names and are stored in a location where the web server executes PHP.
Patch Status
CodeIgniter4 4.7.5 is listed as unaffected. Administrators and developers should upgrade to 4.7.5 or later. There is no KEV entry for this CVE, so no CISA required action or due date applies. For fix details, see the project's GitHub security advisory and the VulnCheck advisory linked below.
NVD lists the record status as "Received," published 2026-12-02. Severity data and affected-version details may still change as analysis continues.