CakePHP allows remote attackers to spoof their IP
The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP header.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | cakephp/cakephp | >= 1.2.0, < 2.6.13, >= 2.7.0-rc1, < 2.7.11, >= 2.8.0-rc1, < 2.8.2, >= 3.0.0-rc1, < 3.0.17, >= 3.1.0-beta1, < 3.1.12, >= 3.2.0-rc1, < 3.2.5 | 2.6.13, 2.7.11, 2.8.2, 3.0.17, 3.1.12, 3.2.5 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-4793
- https://github.com/cakephp/cakephp/commit/908754649f70bab2b1093942e17c9a46a2fcf6c2
- https://bakery.cakephp.org/2016/03/13/cakephp_2613_2711_282_3017_3112_325_released.html
- https://github.com/cakephp/cakephp
- https://support.citrix.com/article/CTX236992
- https://www.exploit-db.com/exploits/39813
- http://legalhackers.com/advisories/CakePHP-IP-Spoofing-Vulnerability.txt
- http://www.securityfocus.com/bid/95846
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- Weakness (CWE)
CWE-20- Platform
- Composer
- Package
cakephp/cakephp- Disclosed
- 14.05.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-j8p3-8m69-2hqq - CC BY 4.0
Vulnerability history: cakephp/cakephp
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 22
- First → latest
- 12.2019 09.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 3
- High 8
- Medium 11
Disclosures per year
- 2019: 1
- 2020: 0
- 2021: 0
- 2022: 9
- 2023: 7
- 2024: 0
- 2025: 0
- 2026: 5
-
CakePHP allows remote attackers to spoof their IP this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.