{
  "id": "CVE-2026-57190",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-57190",
  "published_at": "2026-10-27T21:45:50.075Z",
  "title": "Asterisk: SQL Injection in cel_pgsql and cel_tds via CELGenUserEvent eventtype Field",
  "vendor": "asterisk",
  "product": "asterisk",
  "cvss": {
    "score": 7,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:H/SI:L/SA:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Asterisk is an open source private branch exchange and telephony toolkit. Prior to Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3, the `PostgreSQL` and `TDS/MSSQL` Channel Event Log backends `cel_pgsql` and `cel_tds` may permit arbitrary SQL execution when untrusted data is set in the CEL `eventtype` column by the `CELGenUserEvent` dialplan application. The `cel_pgsql` or `cel_tds` backend must be loaded and configured, and the administrator must call `CELGenUserEvent` in the dialplan without ensuring that only valid data is passed to the application. This issue is fixed in Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3.",
  "cwe": "CWE-89",
  "cvss_by_source": {
    "cna": 7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "asterisk",
        "product": "asterisk",
        "ranges": [
          "\u003c 20.20.1",
          "\u003e= 21.0.0-pre1, \u003c 21.12.3",
          "\u003e= 22.0.0-pre1, \u003c 22.10.1",
          "\u003e= 23.0.0-pre1, \u003c 23.4.1"
        ],
        "fixed_in": [
          "20.20.1",
          "21.12.3",
          "22.10.1",
          "23.4.1"
        ]
      },
      {
        "vendor": "asterisk",
        "product": "certified-asterisk",
        "ranges": [
          "\u003c 20.7-cert11",
          "\u003e= 22.8-cert1-pre1, \u003c 22.8-cert3"
        ],
        "fixed_in": [
          "20.7-cert11",
          "22.8-cert3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade asterisk to 20.20.1 or 21.12.3 or 22.10.1 or 23.4.1 or later.",
      "Upgrade certified-asterisk to 20.7-cert11 or 22.8-cert3 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/asterisk/asterisk/security/advisories/GHSA-ph27-3m5q-mj5m"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/asterisk/asterisk/commit/046a8b0b50623d80926c1adc2eca1c9c17e258ed"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/asterisk/asterisk/commit/0a86e45e8cde7630276f8363de45f71d1635d2f4"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/asterisk/asterisk/commit/88c65757b56c716b5a175f35941be22e038b256f"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/asterisk/asterisk/commit/8bf7746d01221d6d2bcfcd46ba7a1cff066a1a8b"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/asterisk/asterisk/commit/8cb6dfd41debb2259ec3a33ccfa78f1d902e4c22"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/asterisk/asterisk/commit/a04bee3992c28e1681457370e46f30494b7c6619"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/asterisk/asterisk/commit/ff21d90e61d199db9b963c671d125a1e917d41ac"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
