CVE-2026-48062
CodeIgniter: Uploaded file extension validation bypass in `ext_in` rule
Also known as GHSA-2gr4-ppc7-7mhx
Mitigation
- Upgrade codeigniter4/framework to 4.7.3 or later.
Who should check
- Projects that depend on Packagist package codeigniter4/framework (< 4.7.3)
- Anyone running CodeIgniter4 < 4.7.3
Vulnerability facts
- Affected
- codeigniter4/framework < 4.7.3
- Fixed in
- 4.7.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.78% chance of exploitation in 30 days (percentile 52, 2026-11-26)
- CWE
- CWE-434
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist codeigniter4/framework | < 4.7.3 | 4.7.3 | osv |
| CodeIgniter4 | < 4.7.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-48062. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-48062.md Affected: codeigniter4/framework < 4.7.3 Fixed in: 4.7.3 Steps: 1. Search this machine and project for codeigniter4/framework (Packagist), CodeIgniter4: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- https://github.com/codeigniter4/CodeIgniter4/releases/tag/v4.7.3
- https://codeigniter.com/user_guide/libraries/uploaded_files.html#moving-files
- https://codeigniter.com/user_guide/libraries/validation.html#rules-for-file-uploads
- https://github.com/codeigniter4/CodeIgniter4
- https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md
FAQ
Is CVE-2026-48062 being exploited?
There is no confirmed exploitation: CVE-2026-48062 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.78% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-48062?
Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-48062?
codeigniter4/framework < 4.7.3.
Is there a fix for CVE-2026-48062?
Yes. Fixed in 4.7.3. Upgrade codeigniter4/framework to 4.7.3 or later.
How do I check if I'm affected by CVE-2026-48062?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.