What’s Vulnerable › Vulnerabilities

CVE-2022-23556: CodeIgniter is vulnerable to IP address spoofing when using proxy

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 products

How to fix

Upgrade to a fixed version: CodeIgniter4 4.2.11. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-23556 or the next vulnerability affects your stack