Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-142155: critical-severity vulnerability (CVSS 9.3) in codeigniter4 CodeIgniter4.
What happened
Original description from the source: CodeIgniter4 before 4.7.5 has an upload validation bypass: the is_image and mime_in rules accept filenames whose trailing dots conceal a PHP extension, and these rules and ext_in accept a PHP extension before the final image extension. Attackers can upload such files to achieve remote code execution when applications keep client-supplied filenames in a web directory that executes PHP.
Why it matters
Critical severity, CVSS 9.3.
Affected products and versions
codeigniter4 CodeIgniter4 < 4.7.5; codeigniter4 CodeIgniter4 4.7.5 (fixed in 4.7.5)
| Product | Versions | Fixed in |
|---|---|---|
| codeigniter4 CodeIgniter4 | < 4.7.5 | — |
| codeigniter4 CodeIgniter4 | 4.7.5 | 4.7.5 |
Action recommended by the source
Upgrade to a fixed version: 4.7.5.
Fixed in: 4.7.5
Sources and references
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-4hwf-v4mp-hf6c — CVE Program
- https://www.vulncheck.com/advisories/codeigniter4-before-4.7.5-upload-validation-bypass-via-trailing-dots-and-php-extensions — CVE Program
Weaknesses (CWE): CWE-434
Relevant change history
Published
Preliminary advisory published.