CVE-2026-48062 Details
Description
CodeIgniter is a PHP full-stack web framework. Prior to 4.7.3, the ext_in upload validation rule in system/Validation/StrictRules/FileRules.php checked the MIME-derived guessed extension instead of the client-provided filename extension. As a result, an uploaded file named shell.php containing GIF-like content could pass validation such as uploaded[avatar]|is_image[avatar]|mime_in[avatar,image/gif]|ext_in[avatar,gif] because the detected MIME type maps to gif, even though the uploaded filename extension is php. Applications are impacted if they accept user-controlled uploads, rely on ext_in to validate the uploaded filename extension, save uploaded files using the original client filename with $file->move($path), store uploads in a web-accessible directory, and allow PHP or other executable files to run from that directory. In those conditions, this may lead to arbitrary code execution. This issue is fixed in version 4.7.3.
A vulnerability exists in CodeIgniter prior to version 4.7.3, where the ext_in upload validation rule incorrectly validated the MIME-derived guessed extension instead of the client's provided filename extension. This flaw allowed files like shell.php, disguised as GIFs, to bypass validation checks. Applications that accept user uploads, rely on the ext_in rule for validation, save files with their original names, store uploads in web-accessible directories, and permit execution of PHP or similar files from those directories are at risk. Exploitation could lead to arbitrary code execution.
Users can upgrade to CodeIgniter version 4.7.3 or later. For those unable to upgrade, it is recommended to save uploads outside the public web root, use the file storage methods that do not preserve the original filename, disable script execution in public upload directories, manually verify client filename extensions before moving files, and reject files with disallowed or mismatched extensions.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 17, 2026CISA-ADP
Assessed Jul 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/codeigniter4/CodeIgniter4/commit/29299349e7d232e9532767c7cefaed30957309be | [email protected] | Source CodeVendor |
| https://github.com/codeigniter4/CodeIgniter4/releases/tag/v4.7.3 | [email protected] | Release NotesVendor |
| https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-2gr4-ppc7-7mhx | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-434 | Unrestricted Upload of File with Dangerous Type | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| CodeIgniter | < 4.7.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 20, 2026 | CVE Modified | CISA-ADP |
| Jul 17, 2026 | New CVE Received | [email protected] |
Volerion