# CodeIgniter: Uploaded file extension validation bypass in `is_image` and `mime_in` rules

Critical severity, published 2026-08-07. Update codeigniter4/framework to 4.7.4 or later: composer update codeigniter4/framework.

Canonical URL: https://buzzphp.com/security/ghsa-mmj4-63m4-r6h5 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical (CVSS 9.8) |
| Published | 2026-08-07 |
| Updated | 2026-08-07 |
| CVE | [CVE-2026-63223](https://nvd.nist.gov/vuln/detail/CVE-2026-63223) |
| GHSA | [GHSA-mmj4-63m4-r6h5](https://github.com/advisories/GHSA-mmj4-63m4-r6h5) |
| Weakness | CWE-434 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| codeigniter4/framework | < 4.7.4 | 4.7.4 |

## What to do

Update codeigniter4/framework to 4.7.4 or later: composer update codeigniter4/framework.

Check which version you run with `composer show codeigniter4/framework`, and every affected package with `composer audit`.

## About this advisory

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.

## Links

- [GHSA-mmj4-63m4-r6h5 on GitHub](https://github.com/advisories/GHSA-mmj4-63m4-r6h5)
- [CVE-2026-63223 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-63223)
- [All Composer security advisories](https://buzzphp.com/security)
