CVE-2022-24711 Remote CLI Command Execution Vulnerability in CodeIgniter4
Attackers can execute arbitrary CLI commands via HTTP requests due to improper input validation in CodeIgniter4.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-24711?
CVE-2022-24711 is a critical command injection vulnerability in CodeIgniter4, published on 28 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
CodeIgniter4 is the 4.x branch of CodeIgniter, a PHP full-stack web framework. Prior to version 4.1.9, an improper input validation vulnerability allows attackers to execute CLI routes via HTTP request. Version 4.1.9 contains a patch. There are currently no known workarounds for this vulnerability.
Weakness: CWE-20
Which versions are affected by CVE-2022-24711?
3 open source packages ship an affected version, including codeigniter4/framework and codeigniter. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
codeigniter4/framework Packagist | All versions | 4.1.9 |
codeigniter4/framework Packagist | All versions | 4.1.9 |
codeigniter Bitnami | From 4.0.0 | 4.1.9 |
Products include Codeigniter Codeigniter.
How do I fix CVE-2022-24711?
Upgrade codeigniter4/framework to 4.1.9 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-24711 being exploited?
There is no known exploitation of CVE-2022-24711 in the wild and no public exploit code.
Other vulnerabilities in CodeIgniter4
Sources
Also known as BIT-codeigniter-2022-24711, GHSA-xjp4-6w75-qrj7.