Skip to main content

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

CVE-2024-9264

Severity High
Score 9.4/10

Summary

The SQL Expressions experimental feature of Grafana allows for the evaluation of `duckdb` queries containing user input. These queries are insufficiently sanitized before being passed to `duckdb`, leading to a Command Injection and Local File Inclusion vulnerability. Any user with the `VIEWER` or higher permission is capable of executing this attack. The `duckdb` binary must be present in Grafana's `$PATH` for this attack to function; by default, this binary is not installed in Grafana distributions. The issue has been fixed in versions 11.0.6+security-01, 11.1.7+security-01 and 11.2.2+security-01.

  • LOW
  • NETWORK
  • HIGH
  • UNCHANGED
  • NONE
  • LOW
  • HIGH
  • HIGH

CWE-77 - Command Injection

A command injection attack involves injecting an operating system command through the data input, which gets executed on the host operating system with the privileges of the victimized application. The impact of a command injection attack may range from loss of data confidentiality and integrity to unauthorized remote access to the hosting system. The attack may cause serious data breaches and system takeover.

Advisory Timeline

  • Published