CVE-2022-23556: Attackers may spoof 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().
Other sources
CVE-2022-23556: Attackers may spoof IP address when using proxy
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/codeigniter4/frameworkto a version that resolves this vulnerability.Fixed in 4.2.11 - Upgrade
Upgrade
CodeIgniterto a version that resolves this vulnerability.Fixed in 4.2.11 - Configuration
Configure Config\App::$proxyIPs.
CodeIgniter Config\App::$proxyIPs - Compensating control
Do not use `$request->getIPAddress()`.
Event History
Frequently Asked Questions
What is CVE-2022-23556?
CVE-2022-23556 is a vulnerability that allows attackers to spoof their IP address when the server is behind a reverse proxy in CodeIgniter.
How severe is CVE-2022-23556?
CVE-2022-23556 has a severity rating of 7.5 (high).
How can I fix CVE-2022-23556?
To fix CVE-2022-23556, upgrade to CodeIgniter version 4.2.11 or later, and configure Config\App::$proxyIPs. Alternatively, you can temporarily avoid the vulnerability by not using $requ…
Where can I find more information about CVE-2022-23556?
You can find more information about CVE-2022-23556 in the official GitHub security advisory and commit: [GitHub Advisory](https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-ghw3-5qvm-3mqc), [GitHub Commit](https://github.com/codeigniter4/CodeIgniter4/commit/5ca8c99b2db09a2a08a013836628028ddc984659).
What is the Common Weakness Enumeration (CWE) ID for CVE-2022-23556?
The CWE ID for CVE-2022-23556 is CWE-345.