Packagist · codeigniter4/framework
CodeIgniter: Uploaded file extension validation bypass in `is_image` and `mime_in` rules
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_image or mime_in without an independent safe extension check, such as ext_in on patched versionsUpgrade to v4.7.4 or later.
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().Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.
Check my repoSources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.