Skip to main content
← All vulnerabilities
CVE-2020-26273

sqlite ATTACH allows some filesystem access

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.6.0
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • osquery osquery

    fixed in 4.6.0

References 4

GitHub · osquery/osquery

GitHub · swisskyrepo/PayloadsAllTheThings