Vulnerabilities · 2020 · Linuxfoundation
CVE-2020-26273
Linuxfoundation Osquery vulnerability
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.
Affected products
Osquery. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linuxfoundation Osquery runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/osquery/osquery/commit/c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c · Patch
- github.com/osquery/osquery/releases/tag/4.6.0 · Third Party Advisory
- github.com/osquery/osquery/security/advisories/GHSA-4g56-2482-x7q8 · Exploit
- github.com/swisskyrepo/PayloadsAllTheThings/blob/master/SQL%20Injection/SQLite%20Injection · Exploit
- nvd.nist.gov/vuln/detail/CVE-2020-26273
- cve.org/CVERecord?id=CVE-2020-26273
More vulnerabilities in Linuxfoundation products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.