CVE-2026-39196
Received Received - Intake
SQL Injection in Datadog Vector

Publication date: 2026-06-15

Last updated on: 2026-06-15

Assigner: MITRE

Description
Datadog, Inc Vector v0.54.0 was discovered to contain a SQL injection vulnerability in the set_uri_query parameter in the KeyPartitioner::partition function. This vulnerability allows attackers to access sensitive database information via crafted SQL statements.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-15
Last Modified
2026-06-15
Generated
2026-06-16
AI Q&A
2026-06-15
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
datadog vector 0.54.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-39196 is a SQL injection vulnerability found in Datadog Vector version 0.54.0, specifically in the ClickHouse sink component. The issue occurs because the database identifier used in SQL INSERT queries is not properly escaped when it is dynamically generated from event fields. An attacker who controls an event field, such as the target database name, can inject malicious SQL formatting commands to manipulate the query. This allows them to redirect writes to unintended ClickHouse tables by breaking out of the quoted context in the SQL statement.

For example, by crafting a field like `prod"."admin_logs" FORMAT JSONEachRow --`, an attacker can alter the query to write data into the `prod.admin_logs` table instead of the intended one. This vulnerability arises because URL encoding does not prevent the attack, as ClickHouse decodes the query before parsing.

Impact Analysis

This vulnerability can impact you by allowing attackers to perform data integrity attacks on your ClickHouse database. Specifically, attackers can inject logs into unauthorized tables, pollute audit data, or manipulate downstream monitoring workflows.

Such unauthorized writes can compromise the reliability and trustworthiness of your data, potentially leading to incorrect monitoring alerts, corrupted audit trails, and unauthorized data manipulation, assuming the Vector service has write permissions to the targeted tables.

Detection Guidance

This vulnerability involves SQL injection via the set_uri_query parameter in the KeyPartitioner::partition function, specifically affecting Datadog Vector version 0.54.0 when using dynamic database templates in the ClickHouse sink configuration.

To detect exploitation attempts on your system, you should monitor logs and events for suspicious or malformed SQL queries targeting ClickHouse tables, especially those containing unusual formatting or injection patterns such as escaped quotes or injected SQL commands.

You can use commands to search for suspicious queries or payloads in your logs. For example, using grep on log files to find suspicious patterns:

  • grep -r '"\.\"admin_logs\" FORMAT JSONEachRow --' /path/to/vector/logs
  • grep -r 'target_db' /path/to/vector/logs | grep -E '"\.\".*\" FORMAT JSONEachRow --'

Additionally, monitoring network traffic for unusual SQL queries or unexpected writes to unauthorized ClickHouse tables can help detect exploitation.

Mitigation Strategies

Immediate mitigation steps include:

  • Avoid using dynamic database templates in the ClickHouse sink configuration that incorporate untrusted event fields.
  • Sanitize and properly escape all user-controlled inputs used in SQL queries to prevent injection.
  • Restrict Vector service write permissions to only necessary ClickHouse tables to limit potential damage.
  • Monitor logs and audit trails for suspicious activity or unexpected writes to unauthorized tables.
  • Update or patch Datadog Vector to a version where this vulnerability is fixed once available.
Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-39196. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart