{"id":"CVE-2016-4793","aliases":["DEBIAN-CVE-2016-4793","DLA-835-1","EUVD-2022-4314","GHSA-j8p3-8m69-2hqq","UBUNTU-CVE-2016-4793","USN-8978-1"],"status":"published","title":"CakePHP allows remote attackers to spoof their IP","description":"The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP header.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.05146,"percentile":0.92472,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-20"],"published":"2017-01-23T21:00:00Z","modified":"2026-11-04T03:43:13Z","exploits":[{"source":"exploitdb","id":"EDB-39813","title":"CakePHP Framework 3.2.4 - IP Spoofing","type":"webapps","platform":"php","date":"2016-05-16","url":"https://www.exploit-db.com/exploits/39813"}],"fixes":[{"ecosystem":"Packagist","package":"cakephp/cakephp","fixed_in":["2.6.13","2.7.11","2.8.2","3.0.17","3.1.12","3.2.5"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:11","package":"cakephp","fixed_in":["2.8.3-1"],"sources":["osv"]},{"ecosystem":"Debian:7","package":"cakephp","fixed_in":["1.3.15-1+deb7u2"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"cakephp","fixed_in":["1.3.15-1+deb7u2build0.14.04.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"cakephp","fixed_in":["2.8.0-1ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"cakephp/cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.2.0"},{"fixed":"2.6.13"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"cakephp/cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7.0-rc1"},{"fixed":"2.7.11"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"cakephp/cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.8.0-rc1"},{"fixed":"2.8.2"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"cakephp/cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0-rc1"},{"fixed":"3.0.17"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"cakephp/cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0-beta1"},{"fixed":"3.1.12"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"cakephp/cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.0-rc1"},{"fixed":"3.2.5"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.3-1"}]}]},{"source":"osv","ecosystem":"Debian:7","package":"cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.15-1+deb7u2"}]}],"versions":["1.3.15-1","1.3.15-1+deb7u1"]},{"source":"osv","ecosystem":"Packagist","package":"cakephp/cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.2.0"},{"fixed":"2.6.13"}]}],"versions":["2.4.10","2.4.5","2.4.6","2.4.7","2.4.8","2.4.9","2.5.0","2.5.0-RC1","2.5.0-RC2","2.5.0-beta","2.5.1","2.5.2","2.5.3","2.5.4","2.5.5","2.5.6","2.5.7","2.5.8","2.5.9","2.6.0","2.6.0-RC1","2.6.0-beta","2.6.1","2.6.10","2.6.11","2.6.12","2.6.2","2.6.3","2.6.4","2.6.5","2.6.6","2.6.7","2.6.8","2.6.9"]},{"source":"osv","ecosystem":"Packagist","package":"cakephp/cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7.0-rc1"},{"fixed":"2.7.11"}]}],"versions":["2.7.0","2.7.1","2.7.10","2.7.2","2.7.3","2.7.4","2.7.5","2.7.6","2.7.7","2.7.8","2.7.9"]},{"source":"osv","ecosystem":"Packagist","package":"cakephp/cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.8.0-rc1"},{"fixed":"2.8.2"}]}],"versions":["2.8.0","2.8.0-RC1","2.8.1"]},{"source":"osv","ecosystem":"Packagist","package":"cakephp/cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0-rc1"},{"fixed":"3.0.17"}]}],"versions":["3.0.0","3.0.0-RC1","3.0.0-RC2","3.0.1","3.0.10","3.0.11","3.0.12","3.0.13","3.0.14","3.0.15","3.0.16","3.0.2","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.0.8","3.0.9"]},{"source":"osv","ecosystem":"Packagist","package":"cakephp/cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0-beta1"},{"fixed":"3.1.12"}]}],"versions":["3.1.0","3.1.0-RC1","3.1.0-beta2","3.1.1","3.1.10","3.1.11","3.1.2","3.1.3","3.1.4","3.1.5","3.1.6","3.1.7","3.1.8","3.1.9"]},{"source":"osv","ecosystem":"Packagist","package":"cakephp/cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.0-rc1"},{"fixed":"3.2.5"}]}],"versions":["3.2.0","3.2.0-RC1","3.2.1","3.2.2","3.2.3","3.2.4"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.15-1+deb7u2build0.14.04.1"}]}],"versions":["1.3.15-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.0-1ubuntu0.1~esm1"}]}],"versions":["2.7.2-1","2.8.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"cakephp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.0-1ubuntu0.1~esm1"}]}],"versions":["2.7.2-1","2.8.0-1"]}],"products":[{"vendor":"cakephp","product":"cakephp"}],"references":[{"url":"https://support.citrix.com/article/CTX236992","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://www.exploit-db.com/exploits/39813/","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"http://legalhackers.com/advisories/CakePHP-IP-Spoofing-Vulnerability.txt","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web","report"]},{"url":"http://www.securityfocus.com/bid/95846","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"https://bakery.cakephp.org/2016/03/13/cakephp_2613_2711_282_3017_3112_325_released.html","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-4793","tags":["advisory"]},{"url":"https://github.com/cakephp/cakephp/commit/908754649f70bab2b1093942e17c9a46a2fcf6c2","tags":["web"]},{"url":"https://github.com/advisories/GHSA-j8p3-8m69-2hqq"},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-4793","tags":["advisory"]},{"url":"https://github.com/cakephp/cakephp","tags":["package"]},{"url":"https://www.exploit-db.com/exploits/39813","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2016-4793","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-4793","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-8978-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2016-4793","description":"The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP header.","status":"published","published":"2017-01-23T21:00:00Z","modified":"2024-08-06T00:39:26.212Z","updated_at":"2026-11-02T14:33:35.149563Z"}],"euvd":[{"id":"EUVD-2022-4314","description":"The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP header.","status":"published","published":"2017-01-23T21:00:00Z","modified":"2024-08-06T00:39:26Z","updated_at":"2026-11-03T02:22:44.916959Z"}],"ghsa":[{"id":"GHSA-j8p3-8m69-2hqq","title":"CakePHP allows remote attackers to spoof their IP","description":"The `clientIp` function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the `CLIENT-IP HTTP` header.","status":"published","published":"2022-05-14T02:19:19Z","modified":"2023-04-28T17:26:47Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:36:51.39133Z"}],"nvd":[{"id":"CVE-2016-4793","description":"The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP header.","status":"published","published":"2017-01-23T21:59:01.58Z","modified":"2026-06-17T00:48:13.9Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:03:35.029632Z"}],"osv":[{"id":"CVE-2016-4793","description":"The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP header.","status":"published","published":"2017-01-23T21:59:01.58Z","modified":"2026-10-24T10:30:48.942803287Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:02.454775Z"},{"id":"DEBIAN-CVE-2016-4793","description":"The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP header.","status":"published","published":"2017-01-23T21:59:01.58Z","modified":"2026-08-04T06:03:54.68801202Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:27.627285Z"},{"id":"GHSA-j8p3-8m69-2hqq","title":"CakePHP allows remote attackers to spoof their IP","description":"The `clientIp` function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the `CLIENT-IP HTTP` header.","status":"published","published":"2022-05-14T02:19:19Z","modified":"2024-02-18T05:33:47.156722Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:50.336262Z"},{"id":"UBUNTU-CVE-2016-4793","description":"The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP header.","status":"published","published":"2017-01-23T21:59:00Z","modified":"2026-11-04T03:30:05.79533167Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-04T03:56:45.249606Z"},{"id":"DLA-835-1","title":"cakephp - security update","status":"published","published":"2017-02-24T00:00:00Z","modified":"2026-03-09T02:11:07.301697Z","updated_at":"2026-11-02T15:46:13.207219Z"},{"id":"USN-8978-1","title":"cakephp vulnerability","description":"Dawid Golunski discovered that CakePHP incorrectly trusted the CLIENT-IP\nHTTP header when determining the client IP address. A remote attacker could\npossibly use this issue to spoof their IP address.","status":"published","published":"2026-11-03T17:33:31Z","modified":"2026-11-04T03:43:13.424935128Z","updated_at":"2026-11-04T03:56:18.279609Z"}]}}
