CVE-2023-46240 CodeIgniter4 vulnerable to information disclosure when detailed error report is displayed in production environment
Attackers can view confidential information via detailed error reports in production environments of the CodeIgniter4 PHP framework.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-46240?
CVE-2023-46240 is a high-severity vulnerability in CodeIgniter4, published on 31 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
CodeIgniter is a PHP full-stack web framework. Prior to CodeIgniter4 version 4.4.3, if an error or exception occurs, a detailed error report is displayed even if in the production environment. As a result, confidential information may be leaked. Version 4.4.3 contains a patch. As a workaround, replace `ini_set('display_errors', '0')` with `ini_set('display_errors', 'Off')` in `app/Config/Boot/production.php`.
Weakness: CWE-209
Which versions are affected by CVE-2023-46240?
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.4.3 |
codeigniter4/framework Packagist | All versions | 4.4.3 |
codeigniter Bitnami | All versions | 4.4.3 |
Products include Codeigniter Codeigniter.
How do I fix CVE-2023-46240?
Upgrade codeigniter4/framework to 4.4.3 or later.
Is CVE-2023-46240 being exploited?
There is no known exploitation of CVE-2023-46240 in the wild and no public exploit code.
Other vulnerabilities in CodeIgniter4
Sources
Also known as BIT-codeigniter-2023-46240, GHSA-hwxf-qxj7-7rfj.