Advisory record · GHSA-6g8q-qfpv-57wp

CakePHP Database\\Query::offset() and limit() methods are vulnerable to SQL injection

CVSS 9.8 CriticalCriticalEPSS 0.0093 · 61st percentile

Critical, because:

  • CVSS score 9.8: 9.0 or more.

How we decide what’s critical

Published by the GitHub Advisory Database at 20 Jan 2023, 17:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
cakephp/cakephpPackagist>=4.2.0, <4.2.12 || >=4.3.0, <4.3.11 || >=4.4.0, <4.4.104.2.12, 4.3.11, 4.4.10
cakephp/databasePackagist>=4.2.0, <4.2.12 || >=4.3.0, <4.3.11 || >=4.4.0, <4.4.104.2.12, 4.3.11, 4.4.10
Identifiers
GHSA-6g8q-qfpv-57wp · CVE-2023-22727 · PKSA-jbfd-4v7c-qszc · PKSA-ms25-fq8h-fwpy
Weakness (CWE)
CWE-89
Published
20 Jan 2023
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The CakePHP packages cakephp/cakephp and cakephp/database are affected in versions 4.2.0 to before 4.2.12, 4.3.0 to before 4.3.11, and 4.4.0 to before 4.4.10. The Query limit() and offset() methods can be exploited for SQL injection when they receive unsanitized user request data, and the source does not describe the required access level. Upgrade to 4.2.12, 4.3.11, or 4.4.10, depending on the release line in use; the source also notes that using CakePHP's Pagination library or validating or casting these parameters mitigates the issue.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
9.8 Critical 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0093, the 61st percentile, on 22 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:04 UTC First seen by agentprime
  2. 31 Oct 2026, 14:04 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.