{"api_version":"1","generated_at":"2026-06-21T17:22:09+00:00","cve":"CVE-2023-22727","urls":{"html":"https://cve.report/CVE-2023-22727","api":"https://cve.report/api/cve/CVE-2023-22727.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-22727","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-22727"},"summary":{"title":"CVE-2023-22727","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-01-17 21:15:00","updated_at":"2023-01-25 02:23:00"},"problem_types":["CWE-89"],"metrics":[],"references":[{"url":"https://github.com/cakephp/cakephp/security/advisories/GHSA-6g8q-qfpv-57wp","name":"https://github.com/cakephp/cakephp/security/advisories/GHSA-6g8q-qfpv-57wp","refsource":"MISC","tags":[],"title":"Database\\Query::offset() and limit() vulnerable to SQL injection · Advisory · cakephp/cakephp · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/cakephp/cakephp/commit/3f463e7084b5a15e67205ced3a622577cca7a239","name":"https://github.com/cakephp/cakephp/commit/3f463e7084b5a15e67205ced3a622577cca7a239","refsource":"MISC","tags":[],"title":"Disallow strings in limit() and offset() · cakephp/cakephp@3f463e7 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bakery.cakephp.org/2023/01/06/cakephp_4211_4311_4410_released.html","name":"https://bakery.cakephp.org/2023/01/06/cakephp_4211_4311_4410_released.html","refsource":"MISC","tags":[],"title":"CakePHP 4.2.11, 4.3.11, and 4.4.10 Released — Bakery","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-22727","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22727","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"22727","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"cakephp","cpe5":"cakephp","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-22727","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","cweId":"CWE-89"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"cakephp","product":{"product_data":[{"product_name":"cakephp","version":{"version_data":[{"version_value":">= 4.2.0, < 4.2.12","version_affected":"="},{"version_value":">= 4.3.0, < 4.3.11","version_affected":"="},{"version_value":">= 4.4.0, < 4.4.10","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/cakephp/cakephp/security/advisories/GHSA-6g8q-qfpv-57wp","refsource":"MISC","name":"https://github.com/cakephp/cakephp/security/advisories/GHSA-6g8q-qfpv-57wp"},{"url":"https://github.com/cakephp/cakephp/commit/3f463e7084b5a15e67205ced3a622577cca7a239","refsource":"MISC","name":"https://github.com/cakephp/cakephp/commit/3f463e7084b5a15e67205ced3a622577cca7a239"},{"url":"https://bakery.cakephp.org/2023/01/06/cakephp_4211_4311_4410_released.html","refsource":"MISC","name":"https://bakery.cakephp.org/2023/01/06/cakephp_4211_4311_4410_released.html"}]},"source":{"advisory":"GHSA-6g8q-qfpv-57wp","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2023-01-17 21:15:00","lastModifiedDate":"2023-01-25 02:23:00","problem_types":["CWE-89"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:cakephp:cakephp:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4.0","versionEndExcluding":"4.4.10","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:cakephp:cakephp:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3.0","versionEndExcluding":"4.3.11","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:cakephp:cakephp:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2.0","versionEndExcluding":"4.2.12","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}