{"id":"CVE-2022-23556","aliases":["BIT-codeigniter-2022-23556","EUVD-2022-7632","GHSA-ghw3-5qvm-3mqc"],"status":"published","title":"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-\u003egetIPAddress()`.","severity":{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00398,"percentile":0.34362,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-345"],"published":"2022-12-22T18:50:55Z","modified":"2026-11-11T02:30:24Z","fixes":[{"ecosystem":"Packagist","package":"codeigniter4/framework","fixed_in":["4.2.11"],"sources":["ghsa","osv"]},{"ecosystem":"Bitnami","package":"codeigniter","fixed_in":["4.2.11"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"codeigniter4/framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.11"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"codeigniter","ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0"},{"fixed":"4.2.11"}]}]},{"source":"osv","ecosystem":"Packagist","package":"codeigniter4/framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.11"}]}],"versions":["4.0.0","4.0.0-rc.4","v4.0.0-alpha.3","v4.0.0-alpha.4","v4.0.0-alpha.5","v4.0.0-beta.1","v4.0.0-beta.2","v4.0.0-beta.3","v4.0.0-beta.4","v4.0.0-rc.1","v4.0.0-rc.2","v4.0.0-rc.2.1","v4.0.0-rc.3","v4.0.1","v4.0.2","v4.0.3","v4.0.4","v4.0.5","v4.1.0","v4.1.1","v4.1.2","v4.1.3","v4.1.4","v4.1.5","v4.1.6","v4.1.7","v4.1.8","v4.1.9","v4.2.0","v4.2.1","v4.2.10","v4.2.2","v4.2.3","v4.2.4","v4.2.5","v4.2.6","v4.2.7","v4.2.8","v4.2.9"]}],"products":[{"vendor":"codeigniter","product":"codeigniter"},{"vendor":"codeigniter4","product":"codeigniter4"}],"references":[{"url":"https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-ghw3-5qvm-3mqc","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Third Party Advisory","web","advisory"]},{"url":"https://github.com/codeigniter4/CodeIgniter4/commit/5ca8c99b2db09a2a08a013836628028ddc984659","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","web","fix"]},{"url":"https://codeigniter4.github.io/userguide/incoming/request.html#CodeIgniter\\HTTP\\Request::getIPAddress","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23556","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/codeigniter4/framework/CVE-2022-23556.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-ghw3-5qvm-3mqc"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23556.json","tags":["advisory"]},{"url":"https://github.com/codeigniter4/CodeIgniter4","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-23556","title":"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-\u003egetIPAddress()`.\n","status":"published","published":"2022-12-22T18:50:55.443Z","modified":"2025-04-15T14:37:02.216Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","level":"high","assessor":"cna"}],"cwes":["CWE-345"],"updated_at":"2026-11-02T14:34:29.842547Z"}],"euvd":[{"id":"EUVD-2022-7632","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-\u003egetIPAddress()`.\n","status":"published","published":"2022-12-22T18:50:55Z","modified":"2025-04-15T14:37:02Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","level":"high"}],"updated_at":"2026-11-02T20:52:28.823587Z"}],"ghsa":[{"id":"GHSA-ghw3-5qvm-3mqc","title":"CodeIgniter4 allows spoofing of IP address when using proxy","description":"### Impact\nThis vulnerability may allow attackers to spoof their IP address when your server is behind a reverse proxy.\n\n### Patches\nUpgrade to v4.2.11 or later, and configure `Config\\App::$proxyIPs`.\n\n### Workarounds\nDo not use `$request-\u003egetIPAddress()`.\n\n### References\n- https://codeigniter4.github.io/userguide/incoming/request.html#CodeIgniter\\HTTP\\Request::getIPAddress\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [codeigniter4/CodeIgniter4](https://github.com/codeigniter4/CodeIgniter4/issues)\n* Email us at [SECURITY.md](https://github.com/codeigniter4/CodeIgniter4/blob/develop/SECURITY.md)\n","status":"published","published":"2022-12-22T19:59:58Z","modified":"2023-02-01T05:01:11Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","level":"high"}],"cwes":["CWE-345"],"updated_at":"2026-11-02T14:36:30.61364Z"}],"nvd":[{"id":"CVE-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-\u003egetIPAddress()`.\n","status":"published","published":"2022-12-22T19:15:09.09Z","modified":"2026-06-17T04:30:20.987Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"}],"cwes":["CWE-345"],"updated_at":"2026-11-02T14:07:34.388163Z"}],"osv":[{"id":"CVE-2022-23556","title":"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-\u003egetIPAddress()`.\n","status":"published","published":"2022-12-22T18:50:55.443Z","modified":"2026-11-11T10:30:53.869212004Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","level":"high"}],"cwes":["CWE-345"],"updated_at":"2026-11-11T02:50:43.46164Z"},{"id":"GHSA-ghw3-5qvm-3mqc","title":"CodeIgniter4 allows spoofing of IP address when using proxy","description":"### Impact\nThis vulnerability may allow attackers to spoof their IP address when your server is behind a reverse proxy.\n\n### Patches\nUpgrade to v4.2.11 or later, and configure `Config\\App::$proxyIPs`.\n\n### Workarounds\nDo not use `$request-\u003egetIPAddress()`.\n\n### References\n- https://codeigniter4.github.io/userguide/incoming/request.html#CodeIgniter\\HTTP\\Request::getIPAddress\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [codeigniter4/CodeIgniter4](https://github.com/codeigniter4/CodeIgniter4/issues)\n* Email us at [SECURITY.md](https://github.com/codeigniter4/CodeIgniter4/blob/develop/SECURITY.md)\n","status":"published","published":"2022-12-22T19:59:58Z","modified":"2023-12-06T01:01:59.440156Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","level":"high"}],"cwes":["CWE-345"],"updated_at":"2026-11-02T15:46:47.822182Z"},{"id":"BIT-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-\u003egetIPAddress()`.","status":"published","published":"2024-03-06T10:54:16.602Z","modified":"2024-03-06T11:25:28.861Z","updated_at":"2026-11-02T15:28:28.70813Z"}]}}
