Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.9
CVE-2026-142155: CodeIgniter4 lets disguised files execute as PHP
CVE-2026-142155 · published 1 day ago
Summary
Applications built with CodeIgniter4 (versions before 4.7.5) can be tricked into accepting files that appear to be images but actually contain PHP code. When these files are saved with their original names, the hidden PHP part can run on the server, giving an attacker control. Update to version 4.7.5 or later, or enforce strict server-side checks that rename or block uploaded files before storing them.
What to do
- Update codeigniter4 codeigniter4 to version 4.7.5 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| codeigniter4 | codeigniter4 | < 4.7.5 |
Original advisory text
CodeIgniter4 before 4.7.5 Upload Validation Bypass via Trailing Dots and PHP Extensions
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.
References
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-4hwf-v4mp-... Vendor Advisory
- https://www.vulncheck.com/advisories/codeigniter4-before-4.7.5-upload-validation... Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-1421... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-142155 Vendor Advisory
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker full control
Severity
9.9
Critical
Type
CWE-434Unrestricted File Upload
Timeline
Published2 Dec 2026
Updated3 Dec 2026
First seen2 Dec 2026
Sources
CVE-2026-142155 · NVD
CVE-2026-142155 · MITRE
CVE-2026-142155 · OSV
GHSA-4hwf-v4mp-hf6c · GHSA
Track software like this
Free during beta