Medium severity · published Dec 16, 2020
CVE-2020-26273
osquery is a SQL powered operating system instrumentation, monitoring, and analytics framework
5.2
CVSS
1%
EPSS
No
On KEV
Description
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 vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)1.0% · higher than 61% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
OS
Osquery · Linuxfoundation
before 4.6.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-26273
CVE.org
https://www.cve.org/CVERecord?id=CVE-2020-26273
Patch
https://github.com/osquery/osquery/commit/c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c
Release Notes
https://github.com/osquery/osquery/releases/tag/4.6.0
Exploit
https://github.com/osquery/osquery/security/advisories/GHSA-4g56-2482-x7q8
Exploit
https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/SQL%20Injection/SQLite%20Injection.md#remote-command-execution-using-sqlite-command---load_extension
More from Osquery
9.1
CVE-2020-1887
Incorrect validation of the TLS SNI hostname in osquery versions after 2.9.0 and before 4.2.0 could allow an attacker to MITM osquery traffic in the absence of a configured root…
8.2
CVE-2020-11081
osquery before version 4.4.0 enables a privilege escalation vulnerability
8.1
CVE-2019-3567
In some configurations an attacker can inject a new executable path into the extensions.load file for osquery and hard link a parent folder of a malicious binary to a folder with…
7.8
CVE-2018-6336
An issue was discovered in osquery
