CodeIgniter: Uploaded file extension validation bypass in `is_image` and `mime_in` rules
Critical severity. Published 7 August 2026. Update codeigniter4/framework to 4.7.4 or later: composer update codeigniter4/framework.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| codeigniter4/framework (opens in a new tab) | < 4.7.4 | 4.7.4 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show codeigniter4/framework
composer auditAdvisory details
| Severity | CriticalCVSS 9.8 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-63223 (opens in a new tab) |
| GHSA | GHSA-mmj4-63m4-r6h5 (opens in a new tab) |
| Weakness | CWE-434 |
What the advisory says
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: - validate uploads using isimage or mimein without an independent safe extension check, such as extin on patched versions - save uploaded files using the client-supplied filename - place uploads in a web-accessible directory where PHP files can execute
Patches Upgrade to v4.7.4 or later.
Workarounds - Save uploads outside the public web root, preferably under writable/uploads. - Use $file-store() or $file-move($path, $file-getRandomName()) instead of preserving the original client filename.
Source: GHSA-mmj4-63m4-r6h5 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- CodeIgniter: Path traversal in UploadedFile::move() when using client-provided filenames (high, 7 August 2026)
- CodeIgniter: SQL injection in Query Builder deleteBatch() when used with where() conditions (critical, 7 August 2026)
- CodeIgniter: Spoofable forwarded HTTPS headers in IncomingRequest::isSecure() (opens in a new tab) (medium, 7 August 2026)