CVE-2026-142155: CodeIgniter4 before 4.7.5 Upload Validation Bypass via Trailing Dots and PHP Extensions

Published Dec 2, 2026
·
Updated

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

1 affected component
composer/codeigniter4/framework<4.7.5

Event History

Dec 2, 2026
CVE Published
via MITRE·02:37 PM
Data Sourced
via MITRE·02:37 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203