CVE-2026-142152: CodeIgniter4 before 4.7.5 File Upload Validation Bypass via Empty File Entry
CodeIgniter4 before 4.7.5 contains a file upload validation bypass in FileRules that allows remote attackers to evade type, extension, size, and dimension checks. Attackers can place an empty UPLOADERRNOFILE entry before a disallowed file in an optional multiple-file upload to get it accepted, potentially enabling code execution where uploads are web-accessible.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
CodeIgniter4to a version that resolves this vulnerability.Fixed in 4.7.5
Event History
Frequently Asked Questions
Which upload endpoints are exposed to this bypass?
The issue affects optional multiple-file upload handling where FileRules validation is used. An endpoint is susceptible when an attacker can submit multiple file entries and the application relies on type, extension, size, or dimension checks to reject disallowed files.
What does an attacker need to send to exploit it?
The attacker must submit an empty file entry that produces UPLOAD_ERR_NO_FILE before a disallowed file in the same multiple-file upload. No authentication or user interaction is required according to the supplied severity vector.
When could this lead to code execution?
Code execution is only a potential outcome if the accepted uploaded file is placed in a web-accessible location and can be executed by the server. The validation bypass itself allows evasion of the listed file validation checks.
How can I determine whether my application is affected?
Check whether it uses CodeIgniter4 versions before 4.7.5 and accepts optional multiple-file uploads validated through FileRules. Review whether an upload request containing an empty leading file entry can cause a later disallowed file to pass validation.