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
VendorProductAffected 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.
Fix within
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
Exploitation
<1% chance of attack within 30 days
Type
CWE-434Unrestricted File Upload
Timeline
Published2 Dec 2026
Updated3 Dec 2026
First seen2 Dec 2026
Sources
CVE-2026-142155 · MITRE
Track software like this
Free during beta