CodeIgniter4 Remote CLI Command Execution Vulnerability

Vulnerability

A vulnerability in CodeIgniter4 versions prior to 4.1.9 allows for improper input validation, which can lead to the execution of Command Line Interface (CLI) routes through HTTP requests. This issue has been addressed in version 4.1.9, but no workarounds are available.

Impact

Exploitation of this vulnerability allows for remote execution of CLI commands via HTTP requests, potentially leading to unauthorized command execution on the server.

Reproduction

The vulnerability can be reproduced by sending an HTTP request to a CLI route while the server is configured to handle the request as a CLI command. This can be done by setting the 'REQUEST_METHOD' to 'CLI' and the 'REQUEST_URI' to the desired CLI route.

Remediation

Users are advised to upgrade to CodeIgniter4 version 4.1.9 or later.

Added: May 15, 2026, 12:04 PM
Updated: May 15, 2026, 12:04 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
8.4
remediation
0.0
relevance
0.0
threat
4.8
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.