CVE-2023-46240: CodeIgniter4 vulnerable to information disclosure when detailed error report is displayed in production environment

Published Oct 30, 2023
·
Updated

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

3 affected componentsFixes available
composer/codeigniter4/framework<=4.4.2
4.4.3
CodeIgniter Codeigniter<4.4.3
composer/codeigniter4/framework<=4.4.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/codeigniter4/framework to a version that resolves this vulnerability.

    Fixed in 4.4.3
  2. Upgrade

    Upgrade CodeIgniter4 to a version that resolves this vulnerability.

    Fixed in 4.4.3
  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

Oct 30, 2023
Advisory Published
03:18 PM
Data Sourced
via GitHub·03:18 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·03:18 PM
DescriptionSeverityAffected Software
Oct 31, 2023
CVE Published
via MITRE·03:03 PM
Data Sourced
via MITRE·03:03 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

How can I fix CVE-2023-46240?

Upgrade to CodeIgniter4 v4.4.3 or later.

3

Where can I find the upgrading guide for CodeIgniter4?

You can find the upgrading guide for CodeIgniter4 on the official CodeIgniter4 documentation website.

4

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.

5

What is CWE-209?

CWE-209 is a vulnerability related to information exposure through an error message.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203