CVE-2026-79752 (GCVE-0-2026-79752)
Vulnerability from cvelistv5
Published
2026-09-17 14:49
Modified
2026-09-17 15:20
CWE
  • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Summary
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.
Impacted products
Vendor Product Version
cakephp cakephp Version: < 4.5.12
Version: >= 4.6.0, < 4.6.5
Version: >= 5.0.0, < 5.1.9
Version: >= 5.2.0, < 5.2.14
Version: >= 5.3.0, < 5.3.7
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-79752",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-09-17T15:19:49.116379Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-09-17T15:20:00.313Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "cakephp",
          "vendor": "cakephp",
          "versions": [
            {
              "status": "affected",
              "version": "\u003c 4.5.12"
            },
            {
              "status": "affected",
              "version": "\u003e= 4.6.0, \u003c 4.6.5"
            },
            {
              "status": "affected",
              "version": "\u003e= 5.0.0, \u003c 5.1.9"
            },
            {
              "status": "affected",
              "version": "\u003e= 5.2.0, \u003c 5.2.14"
            },
            {
              "status": "affected",
              "version": "\u003e= 5.3.0, \u003c 5.3.7"
            }
          ]
        }
      ],
      "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\u0027s privileges. This issue is fixed in versions 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7."
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "attackComplexity": "LOW",
            "attackRequirements": "PRESENT",
            "attackVector": "NETWORK",
            "baseScore": 9.2,
            "baseSeverity": "CRITICAL",
            "privilegesRequired": "NONE",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "NONE",
            "subIntegrityImpact": "NONE",
            "userInteraction": "NONE",
            "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",
            "vulnAvailabilityImpact": "HIGH",
            "vulnConfidentialityImpact": "HIGH",
            "vulnIntegrityImpact": "HIGH"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-89",
              "description": "CWE-89: Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-09-17T14:49:56.936Z",
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M"
      },
      "references": [
        {
          "name": "https://github.com/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf",
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://github.com/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf"
        },
        {
          "name": "https://github.com/cakephp/cakephp/pull/19520",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/cakephp/cakephp/pull/19520"
        },
        {
          "name": "https://github.com/cakephp/cakephp/pull/19528",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/cakephp/cakephp/pull/19528"
        },
        {
          "name": "https://github.com/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0"
        },
        {
          "name": "https://github.com/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e"
        },
        {
          "name": "https://github.com/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676"
        },
        {
          "name": "https://github.com/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d"
        },
        {
          "name": "https://github.com/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45"
        },
        {
          "name": "https://github.com/cakephp/cakephp/releases/tag/4.5.12",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/cakephp/cakephp/releases/tag/4.5.12"
        },
        {
          "name": "https://github.com/cakephp/cakephp/releases/tag/4.6.5",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/cakephp/cakephp/releases/tag/4.6.5"
        },
        {
          "name": "https://github.com/cakephp/cakephp/releases/tag/5.1.9",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/cakephp/cakephp/releases/tag/5.1.9"
        },
        {
          "name": "https://github.com/cakephp/cakephp/releases/tag/5.2.14",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/cakephp/cakephp/releases/tag/5.2.14"
        },
        {
          "name": "https://github.com/cakephp/cakephp/releases/tag/5.3.7",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/cakephp/cakephp/releases/tag/5.3.7"
        }
      ],
      "source": {
        "advisory": "GHSA-vjqc-q4mp-2rvf",
        "discovery": "UNKNOWN"
      },
      "title": "CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "cveId": "CVE-2026-79752",
    "datePublished": "2026-09-17T14:49:56.936Z",
    "dateReserved": "2026-08-25T14:08:18.109Z",
    "dateUpdated": "2026-09-17T15:20:00.313Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"cna\": {\"title\": \"CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection\", \"problemTypes\": [{\"descriptions\": [{\"cweId\": \"CWE-89\", \"lang\": \"en\", \"description\": \"CWE-89: Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)\", \"type\": \"CWE\"}]}], \"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\"}}], \"references\": [{\"name\": \"https://github.com/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf\", \"tags\": [\"x_refsource_CONFIRM\"], \"url\": \"https://github.com/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf\"}, {\"name\": \"https://github.com/cakephp/cakephp/pull/19520\", \"tags\": [\"x_refsource_MISC\"], \"url\": \"https://github.com/cakephp/cakephp/pull/19520\"}, {\"name\": \"https://github.com/cakephp/cakephp/pull/19528\", \"tags\": [\"x_refsource_MISC\"], \"url\": \"https://github.com/cakephp/cakephp/pull/19528\"}, {\"name\": \"https://github.com/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0\", \"tags\": [\"x_refsource_MISC\"], \"url\": \"https://github.com/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0\"}, {\"name\": \"https://github.com/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e\", \"tags\": [\"x_refsource_MISC\"], \"url\": \"https://github.com/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e\"}, {\"name\": \"https://github.com/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676\", \"tags\": [\"x_refsource_MISC\"], \"url\": \"https://github.com/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676\"}, {\"name\": \"https://github.com/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d\", \"tags\": [\"x_refsource_MISC\"], \"url\": \"https://github.com/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d\"}, {\"name\": \"https://github.com/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45\", \"tags\": [\"x_refsource_MISC\"], \"url\": \"https://github.com/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45\"}, {\"name\": \"https://github.com/cakephp/cakephp/releases/tag/4.5.12\", \"tags\": [\"x_refsource_MISC\"], \"url\": \"https://github.com/cakephp/cakephp/releases/tag/4.5.12\"}, {\"name\": \"https://github.com/cakephp/cakephp/releases/tag/4.6.5\", \"tags\": [\"x_refsource_MISC\"], \"url\": \"https://github.com/cakephp/cakephp/releases/tag/4.6.5\"}, {\"name\": \"https://github.com/cakephp/cakephp/releases/tag/5.1.9\", \"tags\": [\"x_refsource_MISC\"], \"url\": \"https://github.com/cakephp/cakephp/releases/tag/5.1.9\"}, {\"name\": \"https://github.com/cakephp/cakephp/releases/tag/5.2.14\", \"tags\": [\"x_refsource_MISC\"], \"url\": \"https://github.com/cakephp/cakephp/releases/tag/5.2.14\"}, {\"name\": \"https://github.com/cakephp/cakephp/releases/tag/5.3.7\", \"tags\": [\"x_refsource_MISC\"], \"url\": \"https://github.com/cakephp/cakephp/releases/tag/5.3.7\"}], \"affected\": [{\"vendor\": \"cakephp\", \"product\": \"cakephp\", \"versions\": [{\"version\": \"\u003c 4.5.12\", \"status\": \"affected\"}, {\"version\": \"\u003e= 4.6.0, \u003c 4.6.5\", \"status\": \"affected\"}, {\"version\": \"\u003e= 5.0.0, \u003c 5.1.9\", \"status\": \"affected\"}, {\"version\": \"\u003e= 5.2.0, \u003c 5.2.14\", \"status\": \"affected\"}, {\"version\": \"\u003e= 5.3.0, \u003c 5.3.7\", \"status\": \"affected\"}]}], \"providerMetadata\": {\"orgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"shortName\": \"GitHub_M\", \"dateUpdated\": \"2026-09-17T14:49:56.936Z\"}, \"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\u0027s privileges. This issue is fixed in versions 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7.\"}], \"source\": {\"advisory\": \"GHSA-vjqc-q4mp-2rvf\", \"discovery\": \"UNKNOWN\"}}, \"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2026-79752\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-09-17T15:19:49.116379Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-09-17T15:19:56.933Z\"}}]}",
      "cveMetadata": "{\"cveId\": \"CVE-2026-79752\", \"assignerOrgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"state\": \"PUBLISHED\", \"assignerShortName\": \"GitHub_M\", \"dateReserved\": \"2026-08-25T14:08:18.109Z\", \"datePublished\": \"2026-09-17T14:49:56.936Z\", \"dateUpdated\": \"2026-09-17T15:20:00.313Z\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…