Arbitrary file upload in CodeIgniter4 - #VU155854
Published: October 15, 2026
Vulnerability details
The vulnerability allows a remote attacker to bypass file upload type, extension, size, and dimension restrictions.
The vulnerability exists due to premature validation success in CodeIgniterValidationFileRules and CodeIgniterValidationStrictRulesFileRules when processing a multiple-file upload containing an empty file entry. A remote attacker can submit an entry with UPLOAD_ERR_NO_FILE before a disallowed file to bypass file upload type, extension, size, and dimension restrictions.
Exploitation requires an application that validates an optional multiple-file field without the uploaded[field] rule and then saves the remaining files while skipping empty entries.