CVE-2026-57190

Asterisk: SQL Injection in cel_pgsql and cel_tds via CELGenUserEvent eventtype Field

Published Oct 27, 2026 CVSS 4.0 · 7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

This vulnerability permits an attacker who can invoke the CELGenUserEvent dialplan application to inject arbitrary SQL statements into the eventtype field when the cel_pgsql or cel_tds Channel Event Log backends are loaded. The injected queries are executed against the PostgreSQL or MSSQL database, potentially leading to data disclosure, modification, or denial of service. The weakness is a classic SQL Injection (CWE‑89).

Affected Systems

Affected products include Asterisk and Certified Asterisk. Versions older than Asterisk 20.20.1, 21.12.3, 22.10.1, or 23.4.1 and Certified Asterisk 20.7‑cert11 and 22.8‑cert3 are vulnerable. The issue arises only when the cel_pgsql or cel_tds backends are configured and the dialplan calls CELGenUserEvent with untrusted data.

Risk and Exploitability

The CVSS base score of 7 denotes high severity. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, indicating no known widespread exploitation. Attackers must be able to influence dialplan execution or inject a crafted CELGenUserEvent call with malicious eventtype data, so the risk is primarily for systems that expose dialplan manipulation to untrusted users or lack proper input validation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Asterisk to a version that includes the fix—20.20.1 or later, 21.12.3 or later, 22.10.1 or later, 23.4.1 or later, Certified 20.7‑cert11 or later, or 22.8‑cert3 or later.
  • If an upgrade is not immediately possible, remove or disable the cel_pgsql and cel_tds event log backends so that SQL statements cannot be executed via CELGenUserEvent.
  • Review and harden dialplan configuration to ensure that the CELGenUserEvent application receives only validated eventtype data and that it is not exposed to untrusted callers.
  • Implement strict input validation or whitelisting for the eventtype field if the backend must remain enabled.

Generated by OpenCVE AI on October 27, 2026 at 23:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Asterisk
Asterisk asterisk
Asterisk certified Asterisk
Vendors & Products Asterisk
Asterisk asterisk
Asterisk certified Asterisk
Type Values Removed Values Added
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.
Title Asterisk: SQL Injection in cel_pgsql and cel_tds via CELGenUserEvent eventtype Field
Weaknesses CWE-89
References
Metrics cvssV4_0

{'score': 7, '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'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 28, 2026, 4:13 PM
Reserved
Jun 24, 2026, 2:00 AM
Status
Awaiting Analysis
Published
Oct 27, 2026, 10:17 PM
Modified
Oct 28, 2026, 5:18 PM
Severity
Important
Public date
Oct 27, 2026, 9:45 PM