CVE-2022-23556
JSON

7.0high

CodeIgniter is vulnerable to IP address spoofing when using proxy

Severity
7.0high CVSS:3.1 by GitHub_M
Exploit likelihood
0.42% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-ghw3-5qvm-3mqcBIT-CODEIGNITER-2022-23556

Description

CodeIgniter is a PHP full-stack web framework. This vulnerability may allow attackers to spoof their IP address when the server is behind a reverse proxy. This issue has been patched, please upgrade to version 4.2.11 or later, and configure `Config\App::$proxyIPs`. As a workaround, do not use `$request->getIPAddress()`.

Affected

Product or packageVersionsReported by
codeigniter4 CodeIgniter4< 4.2.11CVE List
codeigniter4/framework (Packagist)before 4.2.11GitHub Advisory Database
codeigniter codeigniterfrom 4.0.0 before 4.2.11NVD
codeigniter (Bitnami)from 4.0.0 before 4.2.11Bitnami Vulnerability Database

All scores

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

Classification

CWE-345

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

What each source says

CVE List

CodeIgniter is a PHP full-stack web framework. This vulnerability may allow attackers to spoof their IP address when the server is behind a reverse proxy. This issue has been patched, please upgrade to version 4.2.11 or later, and configure `Config\App::$proxyIPs`. As a workaround, do not use `$request->getIPAddress()`.

GitHub Advisory Database
Impact

This vulnerability may allow attackers to spoof their IP address when your server is behind a reverse proxy.

Patches

Upgrade to v4.2.11 or later, and configure Config\App::$proxyIPs.

Workarounds

Do not use $request->getIPAddress().

References
For more information

If you have any questions or comments about this advisory:

NVD (es)

CodeIgniter es un framework web PHP de full-stack. Esta vulnerabilidad puede permitir a los atacantes falsificar su dirección IP cuando el servidor está detrás de un proxy inverso. Este problema ha sido solucionado, actualice a la versión 4.2.11 o posterior y configure `Config\App::$proxyIPs`. Como solución alternativa, no utilice `$request-&gt;getIPAddress()`.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-23556 changed 2025-04-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-ghw3-5qvm-3mqc changed 2023-12-06CC-BY-4.0
NVDCVE-2022-23556 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-CODEIGNITER-2022-23556 changed 2024-03-06Apache-2.0