CVE-2026-142155

9.8Critical

Published Dec 2, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

9.8CVSS

Critical

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
Full C/I/A compromise
Weakness
CWE-434

What an attacker gets

Unauthenticated attackers can achieve remote code execution by uploading malicious PHP files. This occurs when the application stores user-uploaded files in a directory that executes PHP scripts.

Root cause

The file validation rules fail to properly sanitize filenames containing trailing dots or multiple extensions, allowing PHP files to bypass image-only restrictions.

Affected versions

CodeIgniter4 before 4.7.5

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to CodeIgniter4 version 4.7.5 or later. Ensure that all user-uploaded files are stored in a directory where PHP execution is explicitly disabled via web server configuration.

remediation — bash
$ composer update codeigniter4/framework

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-142155

More fully triaged vulnerabilities you may want to check next.