logo

CVE-2023-22727 cakephp/database

Package

Manager: composer
Name: cakephp/database
Vulnerable Version: >=4.2.0 <4.2.12 || >=4.3.0 <4.3.11 || >=4.4.0 <4.4.10

Severity

Level: Critical

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00295 pctl0.52373

Details

CakePHP Database\\Query::offset() and limit() methods are vulnerable to SQL injection ### Impact The `Cake\Database\Query::limit()` and `Cake\Database\Query::offset()` methods are vulnerable to SQL injection if passed un-sanitized user request data. ### Patches This issue has been fixed in 4.2.12, 4.3.11, 4.4.10 ### Workarounds Using CakePHP's Pagination library will mitigate this issue, as will validating or casting parameters to these methods. ### References https://bakery.cakephp.org/2023/01/06/cakephp_4211_4311_4410_released.html

Metadata

Created: 2023-01-20T17:30:20Z
Modified: 2023-01-25T16:09:33Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-6g8q-qfpv-57wp/GHSA-6g8q-qfpv-57wp.json
CWE IDs: ["CWE-89"]
Alternative ID: GHSA-6g8q-qfpv-57wp
Finding: F297
Auto approve: 1