Database Query::offset() and limit() vulnerable to SQL injection in cakephp
CVE-2023-22727

9.8CRITICAL

Key Information:

Vendor

CakePHP

Status
Vendor
CVE Published:
17 January 2023

What is CVE-2023-22727?

The CakePHP framework has a vulnerability in its Query::limit() and Query::offset() methods, which can be exploited due to unsanitized user input. This flaw allows an attacker to manipulate SQL queries, leading to unauthorized access to sensitive information. The issue has been addressed in versions 4.2.12, 4.3.11, and 4.4.10, and users are strongly encouraged to upgrade their installations. For those unable to upgrade immediately, using the Pagination library or implementing manual validation of parameters can help mitigate the risks. Protect your application by staying informed and updating promptly.

Affected Version(s)

cakephp >= 4.2.0, < 4.2.12 < 4.2.0, 4.2.12

cakephp >= 4.3.0, < 4.3.11 < 4.3.0, 4.3.11

cakephp >= 4.4.0, < 4.4.10 < 4.4.0, 4.4.10

References

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.