CVE-2023-46240: CodeIgniter Information Disclosure Vulnerability

codeigniter Updated 02 Oct 2025

Summary

06/03/2024
Yes i
High
Not published

CVE-2023-46240: CodeIgniter is a PHP full-stack web framework. Affects codeigniter versions < 4.4.3. Fixed in 4.4.3. How to fix ↓

Also tracked for

The same CVE-2023-46240 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

CodeIgniter is a PHP full-stack web framework that provides developers with a robust set of tools for building web applications. It offers features such as a Model-View-Controller (MVC) architecture, database abstraction, and security functionalities. However, prior to version 4.4.3, CodeIgniter had a vulnerability that allowed detailed error reports to be displayed even in the production environment. This could potentially lead to the leakage of confidential information.

Vulnerability Detail

The vulnerability in CodeIgniter (prior to version 4.4.3) allowed detailed error reports to be shown in the production environment. This means that if an error or exception occurred, sensitive information could be exposed to attackers. This could include database credentials, file paths, or other confidential data. The impact of this vulnerability is high, as it can potentially lead to unauthorized access or further exploitation of the system.

How To Fix

Minimum fixed version

4.4.3

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can modify the 'production.php' file in the 'app/Config/Boot' directory of your CodeIgniter installation. Replace the line 'ini_set('display_errors', '0')' with 'ini_set('display_errors', 'Off')'. This will disable the display of error reports in the production environment. However, it is still recommended to upgrade to the latest version for a permanent fix.

Conclusion

The CodeIgniter information disclosure vulnerability (CVE-2023-46240) allows detailed error reports to be displayed in the production environment, potentially exposing sensitive information. To fix this vulnerability, it is recommended to upgrade to CodeIgniter version 4.4.3 or later. A temporary workaround is available by modifying the 'production.php' file. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for codeigniter →

Share this vulnerability

FAQ

CodeIgniter is a PHP full-stack web framework that provides developers with a set of tools for building web applications. It follows the Model-View-Controller (MVC) architectural pattern and offers features such as database abstraction and security functionalities.

The vulnerability in CodeIgniter allows detailed error reports to be displayed in the production environment, potentially exposing sensitive information. This can lead to unauthorized access or further exploitation of the system.

To fix this vulnerability, it is recommended to upgrade to CodeIgniter version 4.4.3 or later. This version contains a patch that prevents the display of detailed error reports in the production environment.

Yes, there is a temporary workaround available. You can modify the 'production.php' file in the 'app/Config/Boot' directory of your CodeIgniter installation. Replace the line 'ini_set('display_errors', '0')' with 'ini_set('display_errors', 'Off')'. However, it is still recommended to upgrade to the latest version for a permanent fix.

You can find more information about this vulnerability in the CodeIgniter vulnerability database. Please refer to the provided source link for detailed information.

Related vulnerabilities

Recent vulnerabilities recorded for codeigniter.

How To Fix

Minimum fixed version

4.4.3

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback