External risk intelligence

CodeIgniter4 Upload Validation Bypass Vulnerability

CVE advisorySeverity: CRITICAL (CVSS 9.3)

CVE-2026-142155

CodeIgniter is a web application framework used to build public-facing websites and web applications. The vulnerability exists in file upload validation logic. Since web applications frequently provide file upload functionality to users via public internet-facing endpoints, this component is commonly exposed in real-world deployments.

Unrestricted File Upload

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This vulnerability affects web applications using CodeIgniter 4, a framework for building websites. It allows attackers to bypass file upload security checks, potentially leading to their code being executed on the server. The primary concern is to confirm if this specific technology is in use and exposed.

  • Bypasses file upload security.
  • Allows unauthorized code execution.
  • Confirm relevance and exposure.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this vulnerability by uploading a specially crafted file to a web application that uses a vulnerable version of CodeIgniter. The application's file upload validation is bypassed by manipulating filenames to disguise a PHP extension, allowing the attacker to upload a malicious file. If the application then stores this file in a directory where PHP code is executed, the attacker could achieve remote code execution.

  • No authentication or special access is required.
  • File upload functionality is the trigger point.
  • Risk is remote code execution.

Live Threat

Current exploitation, exposure, and threat context

When supported by the advisory, applications using CodeIgniter4 could allow attackers to upload specially crafted files that bypass validation rules. This could lead to the execution of malicious code on the server if client-supplied filenames are stored in a web-accessible directory configured to execute PHP.

  • Server-side code execution.
  • Malicious files uploaded to web directory.
  • Remote code execution possible.

Operational Fix

Recommended remediation, mitigation, and detection steps

The described vulnerability impacts web applications using CodeIgniter4, specifically those with file upload functionality. Application owners and platform teams are likely responsible for addressing this. The first practical step involves identifying all instances of the affected CodeIgniter4 version, assessing their exposure and business criticality, and confirming the accountable owner for each. Remediation planning should then be prioritized based on this risk assessment.

  • Identify and confirm application owners.
  • Verify file upload exposure and criticality.
  • Plan risk-based remediation actions.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is CodeIgniter4 and why do developers use it?

CodeIgniter4 is a lightweight PHP web application framework. Developers use it to structure and accelerate the creation of dynamic websites and web-based tools. It provides pre-built libraries and helpers to simplify complex tasks, such as managing database interactions, handling form data, and validating user-supplied files during uploads.

What is the vulnerability in CVE-2026-142155?

This is an unrestricted file upload vulnerability, classified as CWE-434. The framework's validation rules fail to properly sanitize filenames containing trailing dots or hidden PHP extensions. Because these rules incorrectly approve malicious filenames, the system inadvertently accepts files that can execute unauthorized code on the server instead of treating them as harmless images or data.

How does an attacker trigger this vulnerability?

An attacker uploads a specially crafted file with a manipulated filename designed to bypass validation checks. This bug is not triggered if the application uses strict, manual file renaming upon upload or if the directory where files are saved is not configured to execute PHP scripts. The vulnerability specifically exploits the logic flaw in the framework's validation checks.

Is my application at risk according to Halo Surface Signal?

Halo Surface Signal indicates that because CodeIgniter is frequently used for public-facing websites with user-accessible upload forms, the risk is higher for internet-facing applications. If your deployment allows users to upload files to a web-accessible directory that processes PHP, your instance is likely exposed to this threat.

When should I prioritize fixing this for my application?

You should prioritize this if your application uses a CodeIgniter4 version before 4.7.5 and features any user-facing file upload functionality. Your first steps are to inventory your environment to locate all instances of the affected framework, confirm which applications handle file uploads, and prepare to update to a secure version that resolves these validation flaws.

References