ubuntu-cve-2023-22727
Vulnerability from osv_ubuntu
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.
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "cakephp",
"binary_version": "2.8.0-1"
},
{
"binary_name": "cakephp-scripts",
"binary_version": "2.8.0-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "cakephp",
"purl": "pkg:deb/ubuntu/cakephp@2.8.0-1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.7.2-1",
"2.8.0-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "cakephp",
"binary_version": "2.10.11-2"
},
{
"binary_name": "cakephp-scripts",
"binary_version": "2.10.11-2"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "cakephp",
"purl": "pkg:deb/ubuntu/cakephp@2.10.11-2?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.10.11-2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "cakephp",
"binary_version": "2.10.24-1"
},
{
"binary_name": "cakephp-scripts",
"binary_version": "2.10.24-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "cakephp",
"purl": "pkg:deb/ubuntu/cakephp@2.10.24-1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.10.11-2.1",
"2.10.24-1"
]
}
],
"aliases": [],
"details": "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\u0027s Pagination library. Manually validating or casting parameters to these methods will also mitigate the issue.",
"id": "UBUNTU-CVE-2023-22727",
"modified": "2025-10-24T05:01:46Z",
"published": "2023-01-17T21:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2023-22727"
},
{
"type": "REPORT",
"url": "https://bakery.cakephp.org/2023/01/06/cakephp_4211_4311_4410_released.html"
},
{
"type": "REPORT",
"url": "https://github.com/cakephp/cakephp/security/advisories/GHSA-6g8q-qfpv-57wp"
},
{
"type": "REPORT",
"url": "https://github.com/cakephp/cakephp/commit/3f463e7084b5a15e67205ced3a622577cca7a239"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2023-22727"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2023-22727"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.