{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-79752","id":"CVE-2026-79752","title":"CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection","description":"CakePHP is a rapid development framework for PHP. Prior to 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7, FunctionsBuilder::cast, FunctionsBuilder::extract, FunctionsBuilder::datePart, and FunctionsBuilder::dateAdd in src/Database/FunctionsBuilder.php accept user-controlled dataType, part, or unit values and incorporate them into generated SQL as unescaped structural fragments. An application that passe","descriptionLong":"CakePHP is a rapid development framework for PHP. Prior to 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7, FunctionsBuilder::cast, FunctionsBuilder::extract, FunctionsBuilder::datePart, and FunctionsBuilder::dateAdd in src/Database/FunctionsBuilder.php accept user-controlled dataType, part, or unit values and incorporate them into generated SQL as unescaped structural fragments. An application that passes untrusted input to these parameters can permit SQL injection with confidentiality, integrity, and availability impact according to the database connection's privileges. This issue is fixed in versions 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7.","published":"2026-09-17T14:49:56.936Z","updated":"2026-10-28T02:31:00.559511151Z","reserved":"2026-08-25T14:08:18.109Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":9.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"4.0","score":9.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"critical","source":"GitHub_M"},{"version":"4.0","score":9.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"critical","source":"github.com"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"critical","source":"GitHub"}],"rating":"critical","products":["cakephp"],"affectedProducts":[{"vendor":"cakephp","product":"cakephp","defaultStatus":null,"versions":[{"version":"< 4.5.12","status":"affected"},{"version":">= 4.6.0, < 4.6.5","status":"affected"},{"version":">= 5.0.0, < 5.1.9","status":"affected"},{"version":">= 5.2.0, < 5.2.14","status":"affected"},{"version":">= 5.3.0, < 5.3.7","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"cakephp/database","purl":"pkg:composer/cakephp/database","ranges":[">=3.0.0 <4.5.12",">=4.6.0 <4.6.5",">=5.0.0 <5.1.9",">=5.2.0 <5.2.14",">=5.3.0 <5.3.7"],"fixed":["4.5.12","4.6.5","5.1.9","5.2.14","5.3.7"],"advisory":"GHSA-vjqc-q4mp-2rvf"},{"ecosystem":"Packagist","name":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","ranges":["<4.5.12",">=4.6.0 <4.6.5",">=5.0.0 <5.1.9",">=5.2.0 <5.2.14",">=5.3.0 <5.3.7"],"fixed":["4.5.12","4.6.5","5.1.9","5.2.14","5.3.7"],"advisory":"GHSA-vjqc-q4mp-2rvf"}],"cwes":["CWE-89"],"aliases":["GHSA-vjqc-q4mp-2rvf"],"references":[{"url":"https://github.com/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/cakephp/cakephp/pull/19520","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/cakephp/cakephp/pull/19528","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/4.5.12","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/4.6.5","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/5.1.9","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/5.2.14","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/5.3.7","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/79xxx/CVE-2026-79752.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-79752","tags":["advisory"]},{"url":"https://github.com/cakephp/cakephp/commit/4730e774bd3b9caa90d67af49e27a12033ec3c71","tags":["web"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/5.1.8","tags":["web"]},{"url":"https://github.com/cakephp/cakephp","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00621,"epssPercentile":0.505,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-79752","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-79752","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-79752","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vjqc-q4mp-2rvf","ok":true,"note":"GHSA-vjqc-q4mp-2rvf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-79752","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}