Arbitrary Command Injection Affecting osquery/osquery package, versions [,4.6.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (33rd 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 Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-OSQUERYOSQUERY-2365250
  • published26 Jan 2022
  • disclosed16 Dec 2020
  • creditUnknown

Introduced: 16 Dec 2020

CVE-2020-26273  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade osquery/osquery to version 4.6.0 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Command Injection osquery is a SQL powered operating system instrumentation, monitoring, and analytics framework. In osquery before version 4.6.0, by using sqlite's ATTACH verb, someone with administrative access to osquery can cause reads and writes to arbitrary sqlite databases on disk. This does allow arbitrary files to be created, but they will be sqlite databases. It does not appear to allow existing non-sqlite files to be overwritten. This has been patched in osquery 4.6.0. There are several mitigating factors and possible workarounds. In some deployments, the people with access to these interfaces may be considered administrators. In some deployments, configuration is managed by a central tool. This tool can filter for the ATTACH keyword. osquery can be run as non-root user. Because this also limits the desired access levels, this requires deployment specific testing and configuration.

CVSS Scores

version 3.1