{ "schema_version": "1.4.0", "id": "GHSA-6g8q-qfpv-57wp", "modified": "2023-01-25T16:09:33Z", "published": "2023-01-20T17:30:20Z", "aliases": [ "CVE-2023-22727" ], "summary": "CakePHP Database\\\\Query::offset() and limit() methods are vulnerable to SQL injection", "details": "### Impact\n\nThe `Cake\\Database\\Query::limit()` and `Cake\\Database\\Query::offset()` methods are vulnerable to SQL injection if passed un-sanitized user request data.\n\n### Patches\nThis issue has been fixed in 4.2.12, 4.3.11, 4.4.10\n\n### Workarounds\n\nUsing CakePHP's Pagination library will mitigate this issue, as will validating or casting parameters to these methods.\n\n### References\n\nhttps://bakery.cakephp.org/2023/01/06/cakephp_4211_4311_4410_released.html\n", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" } ], "affected": [ { "package": { "ecosystem": "Packagist", "name": "cakephp/cakephp" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "4.2.0" }, { "fixed": "4.2.12" } ] } ] }, { "package": { "ecosystem": "Packagist", "name": "cakephp/cakephp" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "4.3.0" }, { "fixed": "4.3.11" } ] } ] }, { "package": { "ecosystem": "Packagist", "name": "cakephp/cakephp" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "4.4.0" }, { "fixed": "4.4.10" } ] } ] }, { "package": { "ecosystem": "Packagist", "name": "cakephp/database" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "4.2.0" }, { "fixed": "4.2.12" } ] } ] }, { "package": { "ecosystem": "Packagist", "name": "cakephp/database" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "4.3.0" }, { "fixed": "4.3.11" } ] } ] }, { "package": { "ecosystem": "Packagist", "name": "cakephp/database" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "4.4.0" }, { "fixed": "4.4.10" } ] } ] } ], "references": [ { "type": "WEB", "url": "https://github.com/cakephp/cakephp/security/advisories/GHSA-6g8q-qfpv-57wp" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22727" }, { "type": "WEB", "url": "https://github.com/cakephp/cakephp/commit/3f463e7084b5a15e67205ced3a622577cca7a239" }, { "type": "WEB", "url": "https://bakery.cakephp.org/2023/01/06/cakephp_4211_4311_4410_released.html" }, { "type": "PACKAGE", "url": "https://github.com/cakephp/cakephp" } ], "database_specific": { "cwe_ids": [ "CWE-89" ], "severity": "CRITICAL", "github_reviewed": true, "github_reviewed_at": "2023-01-20T17:30:20Z", "nvd_published_at": "2023-01-17T21:15:00Z" } }