5.9medium
KQL injection via kusto.tables.topics.mapping in kafka-sink-azure-kusto
- Severity
- 5.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
kafka-sink-azure-kusto Kafka Connect plugin is the official Microsoft sink for Azure Data Explorer (Kusto). Prior to 5.2.3, kafka-sink-azure-kusto did not sanitize user-controlled values inside the kusto.tables.topics.mapping configuration. The db, table, mapping, and format fields of each mapping entry were interpolated directly into KQL management/query commands via String.formatted(...) (e.g., FETCH_TABLE_COMMAND.formatted(table) → "<table> | count", FETCH_TABLE_MAPPING_COMMAND.formatted(table, format, mapping) → ".show table <table> ingestion <format> mapping '<mapping>'"). An actor able to influence the connector configuration (for example, someone with permissions to submit or edit Kafka Connect connector configs) could embed KQL metacharacters (;, |, ') to execute arbitrary management commands in the context of the connector's service principal — enabling schema enumeration/modification, ingestion-mapping tampering, or changes to streaming/retention policies on the target Azure Data Explorer database. This is a tampering vulnerability. Exploitation requires privileged access to the connector configuration; no end-user interaction or Kafka record payload is involved. This vulnerability is fixed in 5.2.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Azure kafka-sink-azure-kusto | < 5.2.3 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
kafka-sink-azure-kusto Kafka Connect plugin is the official Microsoft sink for Azure Data Explorer (Kusto). Prior to 5.2.3, kafka-sink-azure-kusto did not sanitize user-controlled values inside the kusto.tables.topics.mapping configuration. The db, table, mapping, and format fields of each mapping entry were interpolated directly into KQL management/query commands via String.formatted(...) (e.g., FETCH_TABLE_COMMAND.formatted(table) → "<table> | count", FETCH_TABLE_MAPPING_COMMAND.formatted(table, format, mapping) → ".show table <table> ingestion <format> mapping '<mapping>'"). An actor able to influence the connector configuration (for example, someone with permissions to submit or edit Kafka Connect connector configs) could embed KQL metacharacters (;, |, ') to execute arbitrary management commands in the context of the connector's service principal — enabling schema enumeration/modification, ingestion-mapping tampering, or changes to streaming/retention policies on the target Azure Data Explorer database. This is a tampering vulnerability. Exploitation requires privileged access to the connector configuration; no end-user interaction or Kafka record payload is involved. This vulnerability is fixed in 5.2.3.
NVD (es)
El plugin kafka-sink-azure-kusto de Kafka Connect es el sink oficial de Microsoft para Azure Data Explorer (Kusto). Antes de la versión 5.2.3, kafka-sink-azure-kusto no saneaba los valores controlados por el usuario dentro de la configuración kusto.tables.topics.mapping. Los campos db, table, mapping y format de cada entrada de mapeo se interpolaban directamente en comandos de gestión/consulta de KQL a través de String.formatted(...) (por ejemplo, FETCH_TABLE_COMMAND.formatted(table) ? ’[table] | count’, FETCH_TABLE_MAPPING_COMMAND.formatted(table, format, mapping) ? ’.show table [table] ingestion [format] mapping ’[mapping]’’). Un actor capaz de influir en la configuración del conector (por ejemplo, alguien con permisos para enviar o editar configuraciones de conectores de Kafka Connect) podría incrustar metacaracteres de KQL (;, |, ’) para ejecutar comandos de gestión arbitrarios en el contexto del principal de servicio del conector - lo que permitiría la enumeración/modificación de esquemas, la manipulación de mapeos de ingesta o cambios en las políticas de streaming/retención en la base de datos de destino de Azure Data Explorer. Esto es una vulnerabilidad de manipulación. La explotación requiere acceso privilegiado a la configuración del conector; no se requiere interacción del usuario final ni carga útil de registro de Kafka. Esta vulnerabilidad está corregida en la versión 5.2.3.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42316 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-42316 changed 2026-10-26 | Public domain |