# CVE-2020-26273: sqlite ATTACH allows some filesystem access

- Severity: Medium 5.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2020-12-16T01:20:19.000Z
- Modified: 2026-06-17T03:07:58.407Z
- Weaknesses: CWE-77
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- osquery osquery: < 4.6.0
- linuxfoundation osquery: before 4.6.0

## Every score

- GitHub_M: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.6 Low `AV:L/AC:L/Au:N/C:P/I:P/A:N`

## References

- <https://github.com/osquery/osquery/security/advisories/GHSA-4g56-2482-x7q8> (exploit, third-party-advisory)
- <https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/SQL%20Injection/SQLite%20Injection.md#remote-command-execution-using-sqlite-command---load_extension> (exploit, third-party-advisory)
- <https://github.com/osquery/osquery/commit/c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c> (patch, third-party-advisory)
- <https://github.com/osquery/osquery/releases/tag/4.6.0> (release-notes, third-party-advisory)

## Sources

- CVE List: [CVE-2020-26273](https://www.cve.org/CVERecord?id=CVE-2020-26273), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-26273](https://nvd.nist.gov/vuln/detail/CVE-2020-26273), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-26273 · Whole record: https://cve.day/CVE-2020-26273.json · Rebuilt by cve.day 2026-11-25T22:57:56.280Z
