CVE-2026-48062 — Vulnerability in codeigniter4/framework — CVE Details
CodeIgniter4 has a validation bypass when uploading file extensions via `ext_in` rule
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.78%). Schedule for your next planned update.
Does your project use an affected codeigniter4/framework version?
Paste your composer.lock to check it for CVE-2026-48062 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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:
- accept user-controlled uploads,
- rely on
ext_into validate the uploaded filename extension, - save uploaded files using the original client filename:
$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. The default application does not expose such an upload endpoint.
Patches
Upgrade to v4.7.3 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 filename - Disable script execution in any public upload directory
- Manually verify the client filename extension before moving the file
- Reject files when
$file->getClientExtension()is not in the allowed list or does not match$file->guessExtension()
Resources
Advisory Timeline
- First published June 11, 2026 (168 days ago).
- Last revised September 10, 2026 — 90 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "codeigniter4/framework:^4.7.3"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| codeigniter4/framework Packagist · Affected: 4.0.0, 4.0.0-rc.4, v4.0.0-alpha.3, v4.0.0-alpha.4 (+73 more) | 4.7.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-434Unrestricted File UploadMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-2gr4-ppc7-7mhxWEB
- https://github.com/codeigniter4/CodeIgniter4/commit/29299349e7d232e9532767c7cefaed30957309beWEB
- https://codeigniter.com/user_guide/libraries/uploaded_files.html#moving-filesWEB
- https://codeigniter.com/user_guide/libraries/validation.html#rules-for-file-uploadsWEB
- https://github.com/codeigniter4/CodeIgniter4PACKAGE
- https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.mdWEB
Frequently Asked Questions
- What is CVE-2026-48062?
- CodeIgniter4 has a validation bypass when uploading file extensions via `ext_in` rule. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-48062?
- CVE-2026-48062 affects codeigniter4/framework. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-48062 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 52.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2025-54418CRITICAL
CodeIgniter4's ImageMagick Handler has Command Injection Vulnerability
- CVE-2026-63221CRITICAL
CodeIgniter: SQL injection in Query Builder deleteBatch() when used with where() conditions
- CVE-2023-32692CRITICAL
Remote Code Execution Vulnerability in Validation Placeholders in CodeIgniter4
- CVE-2026-63223CRITICAL
CodeIgniter: Uploaded file extension validation bypass in `is_image` and `mime_in` rules
- CVE-2026-63412CRITICAL
Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
- CVE-2026-63413CRITICAL
Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)