CVE-2023-22727SQL Injection in Cakephp

CWE-89SQL Injection5 documents4 sources
Severity
9.8CRITICALNVD
EPSS
0.9%
top 23.88%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedJan 17
Latest updateJan 20

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 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages5 packages

Packagistcakephp/database4.2.04.2.12+2
NVDcakephp/cakephp4.2.04.2.12+2
Packagistcakephp/cakephp4.2.04.2.12+2
CVEListV5cakephp/cakephp>= 4.2.0, < 4.2.12, >= 4.3.0, < 4.3.11, >= 4.4.0, < 4.4.10+2

Patches

🔴Vulnerability Details

3
GHSA
CakePHP Database\\Query::offset() and limit() methods are vulnerable to SQL injection2023-01-20
OSV
CakePHP Database\\Query::offset() and limit() methods are vulnerable to SQL injection2023-01-20
OSV
CVE-2023-22727: CakePHP is a development framework for PHP web apps2023-01-17

📋Vendor Advisories

1
Debian
CVE-2023-22727: cakephp - CakePHP is a development framework for PHP web apps. In affected versions the `C...2023