CVE-2020-26273 sqlite ATTACH allows some filesystem access
Administrators can use SQLite ATTACH to read or write arbitrary SQLite databases on disk, potentially exposing or modifying data.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2020-26273?
CVE-2020-26273 is a medium-severity path traversal vulnerability in osquery, published on 16 Dec 2020. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-77
Which versions are affected by CVE-2020-26273?
It affects 1 product.
Products include Linuxfoundation Osquery.
How do I fix CVE-2020-26273?
No fix has been published for CVE-2020-26273 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2020-26273 being exploited?
There is no known exploitation of CVE-2020-26273 in the wild and no public exploit code.
Other vulnerabilities in osquery
Sources
Also known as GHSA-4g56-2482-x7q8.