CodeIgniter: Uploaded file extension validation bypass in `is_image` and `mime_in` rules
Critical severity
GitHub Reviewed
Published
Jul 7, 2026
in
codeigniter4/CodeIgniter4
•
Updated Aug 7, 2026
Description
Published by the National Vulnerability Database
Jul 31, 2026
Published to the GitHub Advisory Database
Aug 7, 2026
Reviewed
Aug 7, 2026
Last updated
Aug 7, 2026
Impact
This is an unsafe file upload validation vulnerability that can lead to remote code execution in vulnerable application configurations.
Applications are impacted when they:
is_imageormime_inwithout an independent safe extension check, such asext_inon patched versionsPatches
Upgrade to v4.7.4 or later.
Workarounds
writable/uploads.$file->store()or$file->move($path, $file->getRandomName())instead of preserving the original client filename.$file->getClientExtension()is not an allowed image extension.$file->getClientExtension()does not match$file->guessExtension().References