CVE-2016-4793 · mitre
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.
Published 2017-01-23, last changed 2026-06-17. Weakness: CWE-20.
Public exploits
| Source | Kind | Reference |
|---|---|---|
| exploit-db | proof-of-concept | EDB-39813 |
How to fix
Upgrade to a fixed version: cakephp/cakephp 2.6.13, 2.7.11, 2.8.2, 3.0.17, 3.1.12, 3.2.5 (Packagist) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in cakephp/cakephp by 908754649f. Functions changed by the fix: clientIp. Regression tests: tests/TestCase/Network/RequestTest.php. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2017-01-23 | Published |
| 2022-05-14 | Package advisory GHSA-j8p3-8m69-2hqq |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 5.15% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-j8p3-8m69-2hqq | cakephp/cakephp (Packagist) | 2.6.13 |
| GHSA-j8p3-8m69-2hqq | cakephp/cakephp (Packagist) | 2.7.11 |
| GHSA-j8p3-8m69-2hqq | cakephp/cakephp (Packagist) | 2.8.2 |
| GHSA-j8p3-8m69-2hqq | cakephp/cakephp (Packagist) | 3.0.17 |
| GHSA-j8p3-8m69-2hqq | cakephp/cakephp (Packagist) | 3.1.12 |
Also known as: GHSA-j8p3-8m69-2hqq
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-119417 | 2026-10-30 | 6.3 | CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport |
| CVE-2026-79752 | 2026-09-17 | 9.2 | CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection |
| CVE-2026-77635 | 2026-08-24 | 9.2 | CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver |
| CVE-2026-77634 | 2026-08-24 | 8.2 | CakePHP: SmtpTransport vulnerable to CRLF header injection |
| CVE-2026-48820 | 2026-06-17 | 6.3 | CakePHP: View::element() is missing a path containment check |
| CVE-2026-23643 | 2026-01-16 | 5.4 | CakePHP PaginatorHelper::limitControl() vulnerable to reflected cross-site-scripting |
| CVE-2023-22727 | 2023-01-17 | 9.8 | Database Query::offset() and limit() vulnerable to SQL injection in cakephp |
| CVE-2020-35239 | 2021-01-26 | 8.8 | same package: cakephp/cakephp (Packagist) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-4793, or call /api/v1/vulnerabilities/CVE-2016-4793. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.