CVE-2026-142155 — CodeIgniter4
CRITICALCVE-2026-142155 is a critical-severity (CVSS 9.8) Unrestricted File Upload vulnerability in codeigniter4 CodeIgniter4. A fix is available — see the affected versions and patch details below.
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…
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- A successful exploit gives an attacker total control of the affected component, not partial access.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-142155.
Description
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.
Affected Products
CodeIgniter4codeigniter4Detection & mitigation playbook
Vendor / applianceDetect
Inventory every codeigniter4 CodeIgniter4 deployment and check each version against the affected-products list above.
Fix
Apply the codeigniter4 CodeIgniter4 security patch or hotfix for CVE-2026-142155 on the affected version, following the vendor advisory for your exact build.
Workarounds
Treat uploaded files as untrusted until proven otherwise: validate the actual content type rather than the supplied extension, store uploads outside the web root on a volume mounted without execute permission, and rename them to server-generated identifiers so an attacker cannot choose the path a request will later resolve. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.
Frequently Asked Questions
Is CVE-2026-142155 being exploited in your environment?
Detect and block the exploit chain at execution, on systems you cannot patch yet.