CVE-2022-23556: Attackers may spoof IP address when using proxy

Published Dec 22, 2022
·
Updated

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

3 affected componentsFixes available
composer/codeigniter4/framework<4.2.11
CodeIgniter Codeigniter>=4.0.0<4.2.11
composer/codeigniter4/framework<4.2.11
4.2.11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/codeigniter4/framework to a version that resolves this vulnerability.

    Fixed in 4.2.11
  2. Upgrade

    Upgrade CodeIgniter to a version that resolves this vulnerability.

    Fixed in 4.2.11
  3. Configuration

    Configure Config\App::$proxyIPs.

    CodeIgniter Config\App::$proxyIPs
  4. Compensating control

    Do not use `$request->getIPAddress()`.

Event History

Dec 22, 2022
Advisory Published
02:49 AM
Data Sourced
via Packagist·02:49 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·06:50 PM
Data Sourced
via MITRE·06:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

How severe is CVE-2022-23556?

CVE-2022-23556 has a severity rating of 7.5 (high).

3

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…

4

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).

5

What is the Common Weakness Enumeration (CWE) ID for CVE-2022-23556?

The CWE ID for CVE-2022-23556 is CWE-345.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203