Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2016-4793 EUVD-2022-4314GHSA-j8p3-8m69-2hqq

CakePHP allows remote attackers to spoof their IP

Published Jan 23, 2017 · Updated Aug 6, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
Debian 11 cakephp 2.8.3-1 —
Debian 7 cakephp 1.3.15-1+deb7u2 DLA-835-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS cakephp 1.3.15-1+deb7u2build0.14.04.1 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
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

References