Threat Feed

CVE-2026-142155: CodeIgniter4 before 4.7.5 Upload Validation Bypass via Trailing Dots and PHP Extensions

Exploitation: None known · CVSS 9.8 Critical · Unauthenticated · Published 2026-12-02

Description

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.

Enclave's analysis

CodeIgniter4 before 4.7.5 lets an attacker sneak a PHP file past the is_image, mime_in and ext_in upload checks by naming it something like shell.php.gif or shell.php. — a trailing dot or double extension the validator doesn't catch. If the app keeps the client-supplied filename and saves it into a folder that executes PHP, that upload becomes remote code execution. No PoC exists yet for this exact CVE, but it's the third version of the same bug family, and the previous one already has working public exploit tooling. Update to 4.7.5, and don't trust client filenames for storage path or extension.

Fix

Upgrade CodeIgniter4 to 4.7.5; codeigniter4/framework to 4.7.5.

Vendor advisory

Affected versions

ProductVulnerableFixed in
CodeIgniter40 before 4.7.54.7.5
codeigniter4/framework< 4.7.54.7.5

Seen in 2 sources