CVE-2023-22727 — Vulnerability in cakephp/database — CVE Details
CakePHP Database\\Query::offset() and limit() methods are vulnerable to SQL injection
Summary
Advisory Timeline
- First published January 20, 2023 (1361 days ago).
- Last revised September 10, 2026 — 1328 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "cakephp/database:^4.3.11"
composer require "cakephp/cakephp:^4.2.12"
composer require "cakephp/cakephp:^4.3.11"
composer require "cakephp/database:^4.4.10"
composer require "cakephp/cakephp:^4.4.10"
composer require "cakephp/database:^4.2.12"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: packagist (2).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| cakephp/database | packagist | 4.3.0, 4.3.1, 4.3.10, 4.3.2 (+7 more) | 4.3.11 |
| cakephp/cakephp | packagist | 4.2.0, 4.2.1, 4.2.10, 4.2.11 (+8 more) | 4.2.12 |
| cakephp/cakephp | packagist | 4.3.0, 4.3.1, 4.3.10, 4.3.2 (+7 more) | 4.3.11 |
| cakephp/database | packagist | 4.4.0, 4.4.1, 4.4.2, 4.4.3 (+6 more) | 4.4.10 |
| cakephp/cakephp | packagist | 4.4.0, 4.4.1, 4.4.2, 4.4.3 (+6 more) | 4.4.10 |
| cakephp/database | packagist | 4.2.0, 4.2.1, 4.2.10, 4.2.11 (+8 more) | 4.2.12 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/cakephp/cakephp/security/advisories/GHSA-6g8q-qfpv-57wpWEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-22727ADVISORY
- https://github.com/cakephp/cakephp/commit/3f463e7084b5a15e67205ced3a622577cca7a239WEB
- https://bakery.cakephp.org/2023/01/06/cakephp_4211_4311_4410_released.htmlWEB
- https://github.com/cakephp/cakephpPACKAGE
Frequently Asked Questions
- What is CVE-2023-22727?
- CakePHP Database\\Query::offset() and limit() methods are vulnerable to SQL injection This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2023-22727?
- CVE-2023-22727 affects cakephp/database and cakephp/cakephp. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-22727 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-107845CRITICAL
Contao: Cross-site scripting in the comments bundle
- CVE-2026-77635CRITICAL
CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver
- CVE-2026-92161CRITICAL
FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider
- CVE-2026-79752CRITICAL
CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies