CVE-2022-24711 Remote CLI Command Execution Vulnerability in CodeIgniter4

Critical 9.4 Published Updated

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.

PackageAffectedFixed in
codeigniter4/framework PackagistAll versions4.1.9
codeigniter4/framework PackagistAll versions4.1.9
codeigniter BitnamiFrom 4.0.04.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.

Sources

Also known as BIT-codeigniter-2022-24711, GHSA-xjp4-6w75-qrj7.

Is CVE-2022-24711 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free