CVE-2023-46240: CodeIgniter4 vulnerable to information disclosure when detailed error report is displayed in production environment
Impact If an error or exception occurs in CodeIgniter4 v4.4.2 and earlier, a detailed error report is displayed even if in the production environment. As a result, confidential information may be leaked.
Patches Upgrade to v4.4.3 or later. See upgrading guide.
Workarounds Replace iniset('displayerrors', '0') with iniset('displayerrors', 'Off') in app/Config/Boot/production.php.
For more information If you have any questions or comments about this advisory: Open an issue in codeigniter4/CodeIgniter4 Email us at SECURITY.md
Other sources
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 iniset('displayerrors', '0') with iniset('displayerrors', 'Off') in app/Config/Boot/production.php.
— MITRE
CodeIgniter4 vulnerable to information disclosure when detailed error report is displayed in production environment
— Packagist
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/codeigniter4/frameworkto a version that resolves this vulnerability.Fixed in 4.4.3 - Upgrade
Upgrade
CodeIgniter4to a version that resolves this vulnerability.Fixed in 4.4.3 - Configuration
In app/Config/Boot/production.php, replace ini_set('display_errors', '0') with ini_set('display_errors', 'Off').
CodeIgniter4 display_errors = Off
Event History
Frequently Asked Questions
What is the impact of CVE-2023-46240?
If an error or exception occurs in CodeIgniter4 v4.4.2 and earlier, a detailed error report is displayed even if in the production environment, potentially leaking confidential information.
How can I fix CVE-2023-46240?
Upgrade to CodeIgniter4 v4.4.3 or later.
Where can I find the upgrading guide for CodeIgniter4?
You can find the upgrading guide for CodeIgniter4 on the official CodeIgniter4 documentation website.
Are there any references for CVE-2023-46240?
Yes, you can find references for CVE-2023-46240 on the CodeIgniter4 GitHub page and the official CodeIgniter4 documentation website.
What is CWE-209?
CWE-209 is a vulnerability related to information exposure through an error message.