{"id":"CVE-2026-79752","state":"PUBLISHED","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 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.","publishedAt":"2026-09-17T14:49:56.936Z","updatedAt":"2026-09-17T15:20:00.313Z","severity":{"score":9.2,"label":"Critical","version":"4.0","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","source":"GitHub_M"},"assigner":"GitHub_M","products":["cakephp cakephp"],"affected":[{"vendor":"cakephp","product":"cakephp","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"}]}],"references":["https://github.com/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf","https://github.com/cakephp/cakephp/pull/19520","https://github.com/cakephp/cakephp/pull/19528","https://github.com/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0","https://github.com/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e","https://github.com/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676","https://github.com/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d","https://github.com/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45","https://github.com/cakephp/cakephp/releases/tag/4.5.12","https://github.com/cakephp/cakephp/releases/tag/4.6.5","https://github.com/cakephp/cakephp/releases/tag/5.1.9","https://github.com/cakephp/cakephp/releases/tag/5.2.14","https://github.com/cakephp/cakephp/releases/tag/5.3.7"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/79xxx/CVE-2026-79752.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-79752","state":"PUBLISHED","datePublished":"2026-09-17T14:49:56.936Z","dateUpdated":"2026-09-17T15:20:00.313Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-08-25T14:08:18.109Z"},"containers":{"cna":{"title":"CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"cakephp","product":"cakephp","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"}]}],"references":[{"url":"https://github.com/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf","name":"https://github.com/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cakephp/cakephp/pull/19520","name":"https://github.com/cakephp/cakephp/pull/19520","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/pull/19528","name":"https://github.com/cakephp/cakephp/pull/19528","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0","name":"https://github.com/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e","name":"https://github.com/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676","name":"https://github.com/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d","name":"https://github.com/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45","name":"https://github.com/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/4.5.12","name":"https://github.com/cakephp/cakephp/releases/tag/4.5.12","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/4.6.5","name":"https://github.com/cakephp/cakephp/releases/tag/4.6.5","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/5.1.9","name":"https://github.com/cakephp/cakephp/releases/tag/5.1.9","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/5.2.14","name":"https://github.com/cakephp/cakephp/releases/tag/5.2.14","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/5.3.7","name":"https://github.com/cakephp/cakephp/releases/tag/5.3.7","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":9.2,"baseSeverity":"CRITICAL","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-17T14:49:56.936Z"},"source":{"advisory":"GHSA-vjqc-q4mp-2rvf","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-17T15:19:49.116379Z","id":"CVE-2026-79752","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-17T15:20:00.313Z"}}]}}}