CVE-2023-22727: CakePHP is a development framework for PHP web apps
CVE-2023-22727 is a critical-severity flaw (CVSS 9.8) affecting cakephp. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
CakePHP is a development framework for PHP web apps. In affected versions the `Cake\Database\Query::limit()` and `Cake\Database\Query::offset()` methods are vulnerable to SQL injection if passed un-sanitized user request data. This issue has been fixed in 4.2.12, 4.3.11, 4.4.10. Users are advised to upgrade. Users unable to upgrade may mitigate this issue by using CakePHP's Pagination library. Manually validating or casting parameters to these me
Why this priority
- Critical severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.9% (top 40%) |
| CISA exploited list | No |
| Weakness | CWE-89 |
| Published | 2023-01-17 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2023-22727?
cakephp: upgrade to 4.2.12, 4.3.11, 4.4.10. Exact commands for each OS are on this page.
Is CVE-2023-22727 being exploited?
CVE-2023-22727 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2023-22727 affect?
CVE-2023-22727 affects cakephp. Severity is critical (CVSS 9.8). CakePHP is a development framework for PHP web apps. In affected versions the `Cake\Database\Query::limit()` and `Cake\Database\Query::offset()` methods are vulnerable to SQL injection if passed un-sanitized user request data. This issue ha
How urgent is CVE-2023-22727?
Priority 54/100. Critical severity; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2026-55590 MEDIUM 6.1 UPGRADE CakePHP Authentication is an authentication plugin for CakePHP that can also be used in PSR-7 based applicatio
- CVE-2026-23643 MEDIUM 5.4 UPGRADE CakePHP is a rapid development framework for PHP
- CVE-2020-35239 HIGH 8.8 UPGRADE A vulnerability exists in CakePHP versions 4.0.x through 4.1.3
- CVE-2020-15400 MEDIUM 4.3 UPGRADE CakePHP before 4.0.6 mishandles CSRF token generation
- CVE-2019-11458 HIGH 7.5 DOWNGRADE An issue was discovered in SmtpTransport in CakePHP 3.7.6