HighGHSA-hwxf-qxj7-7rfjBIT-codeigniter-2023-46240CVE-2023-46240

CodeIgniter4 vulnerable to information disclosure when detailed error report is displayed in production environment

Published 30 Oct 2023 · Updated 16 Feb 2024

Affected package

Affected
<4.4.3
Fixed in
4.4.3
Update to the fixed version for your release line, for example:composer require codeigniter4/framework:^4.4.3

Details

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 ini_set('display_errors', '0') with ini_set('display_errors', 'Off') in app/Config/Boot/production.php.

For more information

If you have any questions or comments about this advisory:

Is GHSA-hwxf-qxj7-7rfj in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected codeigniter4/framework, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.