Description
The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP header.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 11 | cakephp | 2.8.3-1 | — |
| Debian 7 | cakephp | 1.3.15-1+deb7u2 | DLA-835-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | cakephp | 1.3.15-1+deb7u2build0.14.04.1 | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | cakephp | 2.8.0-1ubuntu0.1~esm1 | USN-8978-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- CakePHP Framework 3.2.4 - IP Spoofing EDB-39813 · webapps · May 16, 2016
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | cakephp/cakephp | >= 1.2.0, < 2.6.13 | 2.6.13 | GHSA-j8p3-8m69-2hqq |
| Packagist | cakephp/cakephp | >= 2.7.0-rc1, < 2.7.11 | 2.7.11 | GHSA-j8p3-8m69-2hqq |
| Packagist | cakephp/cakephp | >= 2.8.0-rc1, < 2.8.2 | 2.8.2 | GHSA-j8p3-8m69-2hqq |
| Packagist | cakephp/cakephp | >= 3.0.0-rc1, < 3.0.17 | 3.0.17 | GHSA-j8p3-8m69-2hqq |
| Packagist | cakephp/cakephp | >= 3.1.0-beta1, < 3.1.12 | 3.1.12 | GHSA-j8p3-8m69-2hqq |
| Packagist | cakephp/cakephp | >= 3.2.0-rc1, < 3.2.5 | 3.2.5 | GHSA-j8p3-8m69-2hqq |
Advisories 2
- USN-8978-1 cakephp vulnerability Ubuntu Security Notices (USN) · Nov 4, 2026
- DLA-835-1 cakephp - security update Debian Security (DSA / DLA) · Mar 9, 2026