CVE-2023-22727
published critical CVSS 3.1 · 9.8Database Query::offset() and limit() vulnerable to SQL injection in cakephp
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| cakephp | — | cakephp>= 4.2.0, < 4.2.12 · >= 4.3.0, < 4.3.11 · >= 4.4.0, < 4.4.10 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| cakephp | cakephp | >= 4.2.0, < 4.2.12 (affected)>= 4.3.0, < 4.3.11 (affected)>= 4.4.0, < 4.4.10 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
3Provider assertions
3GitHub_M · cna
Database Query::offset() and limit() vulnerable to SQL injection in cakephp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 7b91352b990dbacefe57396e050344d7aeb8ac2eb3ffb8630835baac6630dcaa
- Ingested
- 23 Sep 2026, 08:06:15 UTC
- Source record
- Official CVE record