Arbitrary Code Injection Affecting github.com/grafana/grafana/pkg/expr/sql package, versions >=11.0.0 <11.0.5+security-01>=11.1.0 <11.1.6+security-01>=11.2.0 <11.2.1+security-01


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
94.64% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGRAFANAGRAFANAPKGEXPRSQL-8230401
  • published18 Oct 2024
  • disclosed18 Oct 2024
  • creditUnknown

Introduced: 18 Oct 2024

CVE-2024-9264  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade github.com/grafana/grafana/pkg/expr/sql to version 11.0.5+security-01, 11.1.6+security-01, 11.2.1+security-01 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection due to insufficient sanitization of queries containing user input before being passed to duckdb. This can lead to a command injection and local file inclusion vulnerability.

Notes:

  1. Any user with the VIEWER or higher permission is capable of executing this attack.

  2. 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.

CVSS Base Scores

version 4.0
version 3.1