{"id":"CVE-2026-42316","aliases":["CVE-2026-42316"],"related":[],"kind":"vulnerability","state":"published","title":"KQL injection via kusto.tables.topics.mapping in kafka-sink-azure-kusto","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-11T16:41:07.091Z","modified":"2026-10-26T18:10:00.173Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N/E:P/RL:O/RC:C","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N/E:P/RL:O/RC:C","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-943"],"affected":[{"ranges":[{"version":"< 5.2.3","status":"affected"}],"vendor":"Azure","product":"kafka-sink-azure-kusto","source":"cvelist"}],"references":[{"url":"https://github.com/Azure/kafka-sink-azure-kusto/security/advisories/GHSA-c9mr-mqvh-6wgj","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Azure/kafka-sink-azure-kusto/pull/155","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Azure/kafka-sink-azure-kusto/releases/tag/v5.2.3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-11T17:27:18.333Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42316","url":"https://www.cve.org/CVERecord?id=CVE-2026-42316","licence":"CVE Terms of Use","modified":"2026-05-11T17:27:23.704Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42316","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42316","licence":"Public domain","modified":"2026-10-26T18:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:21.227Z","epss":{"score":0.00344,"percentile":0.29915,"date":"2026-12-01T12:00:22.000Z"}}