CVE-2026-142155
Received Received - Intake

CodeIgniter4 Upload Validation Bypass Leading to RCE

Vulnerability report for CVE-2026-142155, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-02
AI Q&A
2026-12-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
codeigniter codeigniter to 4.7.5 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-434 The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects CodeIgniter4 versions before 4.7.5. It allows attackers to bypass file upload validation by using filenames with trailing dots that hide PHP extensions or by embedding PHP extensions before the final image extension. The is_image, mime_in, and ext_in rules incorrectly accept these filenames, enabling upload of malicious files that can execute PHP code if stored in a web directory with PHP execution.

Detection Guidance

Check CodeIgniter4 version with: grep -r 'CodeIgniter4' vendor/codeigniter4/framework/composer.json. If version is below 4.7.5, the system is vulnerable. Inspect uploaded files for filenames with trailing dots or hidden PHP extensions like 'image.jpg..php'.

Impact Analysis

Attackers can exploit this to upload files that appear safe but contain PHP code. If these files are stored in a web-accessible directory that executes PHP, remote code execution becomes possible. This could lead to full system compromise, data theft, or unauthorized actions on the server.

Compliance Impact

This vulnerability could lead to unauthorized access or data breaches, violating GDPR's integrity and confidentiality requirements or HIPAA's safeguards for protected health information. Non-compliance may result in legal penalties, fines, or reputational damage due to compromised sensitive data.

Mitigation Strategies

Upgrade CodeIgniter4 to version 4.7.5 or later. Store uploaded files outside the web root directory. Disable PHP execution in upload directories via .htaccess or php.ini. Validate filenames to reject trailing dots and PHP extensions before processing.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-142155. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...