CVE-2022-23556
HIGH 7.5CVSS 3.1CodeIgniter4 allows spoofing of IP address when using proxy
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().
- Published
- 22 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-345
- Also known as
- BIT-codeigniter-2022-23556GHSA-ghw3-5qvm-3mqc
- Sources
- NVDJSONOSV GHSA-ghw3-5qvm-3mqcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | codeigniter | codeignitercpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.2.11 | 4.2.11 |
| OSV | Packagist | codeigniter4/framework | < 4.2.11 | 4.2.11 |
References
- https://github.com/codeigniter4/CodeIgniter4/commit/5ca8c99b2db09a2a08a013836628028ddc984659 · Patch, Third Party Advisory, WEB
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-ghw3-5qvm-3mqc · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-23556 · ADVISORY
- https://codeigniter4.github.io/userguide/incoming/request.html#CodeIgniter\HTTP\Request::getIPAddress · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/codeigniter4/framework/CVE-2022-23556.yaml · WEB
- https://github.com/codeigniter4/CodeIgniter4 · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 22 Dec 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 22 Dec 2022)