← Vulnerability feed

Vulnerability record · CVE-2023-22727 · published 17 January 2023

CVE-2023-22727: Cakephp sql injection vulnerability

Cakephp · Cakephp

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 methods will also mitigate the issue.

9.8 CVSS 3.1 Critical EPSS 0.86% · top 43.2% CWE-89 · SQL injection
9.8CVSS 3.1 base score
0.86%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References
17 Jun 2026Last modified by NVD

Description

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 methods will also mitigate the issue.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2023-22727 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2020-35239Cakephp cross-site request forgery vulnerabilityA vulnerability exists in CakePHP versions 4.0.x through 4.1.3. The CsrfProtectionMiddleware component allows method override parameters to bypass CS…EPSS 0.60%8.8CVE-2015-8379Cakephp cross-site request forgery vulnerabilityCakePHP 2.x and 3.x before 3.1.5 might allow remote attackers to bypass the CSRF protection mechanism via the _method parameter.EPSS 1.4%7.5CVE-2019-11458Cakephp deserialization of untrusted data vulnerabilityAn issue was discovered in SmtpTransport in CakePHP 3.7.6. An unserialized object with modified internal properties can trigger arbitrary file overwr…EPSS 2.0%7.5CVE-2016-4793Cakephp improper input validation vulnerabilityThe clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP header.EPSS 5.1%7.5CVE-2010-4335CakePHP _validatePost unserialize flaw enables remote code executionThe _validatePost function in CakePHP's security component passes the attacker-controlled data[_Token][fields] value to unserialize without validatio…EPSS 55%analysed5.4CVE-2026-23643Cakephp cross-site scripting vulnerabilityCakePHP is a rapid development framework for PHP. The PaginatorHelper::limitControl() method has a cross-site-scripting vulnerability via query strin…EPSS 0.29%5.1CVE-2026-55590Cakephp open redirect vulnerabilityCakePHP Authentication is an authentication plugin for CakePHP that can also be used in PSR-7 based applications. Prior to 2.11.1, 3.3.6, and 4.1.1, …EPSS 0.49%5.0CVE-2011-3712Cakephp information exposure vulnerabilityCakePHP 1.3.7 allows remote attackers to obtain sensitive information via a direct request to a .php file, which reveals the installation path in an …EPSS 1.6%

Source: NIST National Vulnerability Database (record CVE-2023-22727), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.