codeigniter4/framework
Affected
- introduced
0, fixed4.7.3(ecosystem)
Fixed versions
4.7.3
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-48062
CodeIgniter4 has a validation bypass when uploading file extensions via ext_in rule
Impact
The ext_in upload validation rule 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:
ext_in to validate the uploaded filename extension,$file->move($path),In those conditions, this may lead to arbitrary code execution. The default application does not expose such an upload endpoint.
Patches
Upgrade to v4.7.3 or later.
Workarounds
writable/uploads$file->store() or $file->move($path, $file->getRandomName()) instead of preserving the original filename$file->getClientExtension() is not in the allowed list or does not match $file->guessExtension()Resources
Critical Basis: The source's own band: CRITICAL
0, fixed 4.7.3 (ecosystem)4.7.3
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0