CVE-2026-142155: CodeIgniter4 before 4.7.5 Upload Validation Bypass via Trailing Dots and PHP Extensions
CodeIgniter4 before 4.7.5 has an upload validation bypass: the isimage and mimein rules accept filenames whose trailing dots conceal a PHP extension, and these rules and extin 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 Software
Event History
Frequently Asked Questions
Which deployments are exposed to remote code execution?
Applications using CodeIgniter4 before 4.7.5 are exposed when they accept uploads, retain client-supplied filenames, and store the uploaded files in a web-accessible directory configured to execute PHP.
Does exploiting this require an account or user interaction?
No. The supplied severity vector indicates network-reachable exploitation with low attack complexity, no privileges required, and no user interaction.
What filename patterns bypass the affected validation rules?
The affected is_image and mime_in rules accept filenames with trailing dots that conceal a PHP extension. Those rules, along with ext_in, can also accept a PHP extension placed before the final image extension.
What is the immediate mitigation if upgrading is not yet possible?
Do not keep client-supplied upload filenames in web directories that execute PHP. This removes the deployment condition described as enabling remote code execution.