CVE-2023-46240
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.88% (higher than 57% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-hwxf-qxj7-7rfjBIT-CODEIGNITER-2023-46240

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`.

Affected

Product or packageVersionsReported by
codeigniter4 CodeIgniter4< 4.4.3CVE List
codeigniter4/framework (Packagist)before 4.4.3GitHub Advisory Database
codeigniter codeigniterbefore 4.4.3NVD
codeigniter (Bitnami)before 4.4.3Bitnami Vulnerability Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-209

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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`.

GitHub Advisory Database
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:

NVD (es)

CodeIgniter es un framework web PHP de pila completa. Antes de CodeIgniter4 versión 4.4.3, si se producía un error o una excepción, se mostraba un informe de error detallado incluso en el entorno de producción. Como resultado, se puede filtrar información confidencial. La versión 4.4.3 contiene un parche. Como workaround, reemplace `ini_set('display_errors', '0')` con `ini_set('display_errors', 'Off')` en `app/Config/Boot/production.php`.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-46240 changed 2024-09-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-hwxf-qxj7-7rfj changed 2024-02-16CC-BY-4.0
NVDCVE-2023-46240 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-CODEIGNITER-2023-46240 changed 2024-03-06Apache-2.0