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 package | Versions | Reported by |
|---|---|---|
| codeigniter4 CodeIgniter4 | < 4.2.11 | CVE List |
| codeigniter4/framework (Packagist) | before 4.2.11 | GitHub Advisory Database |
| codeigniter codeigniter | from 4.0.0 before 4.2.11 | NVD |
| codeigniter (Bitnami) | from 4.0.0 before 4.2.11 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 7.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L |
| GitHub | 7.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
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:
- Open an issue in codeigniter4/CodeIgniter4
- Email us at SECURITY.md
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->getIPAddress()`.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-23556 changed 2025-04-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-ghw3-5qvm-3mqc changed 2023-12-06 | CC-BY-4.0 |
| NVD | CVE-2022-23556 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-CODEIGNITER-2022-23556 changed 2024-03-06 | Apache-2.0 |