CVE-2020-26273
published medium CVSS 3.1 · 5.2sqlite ATTACH allows some filesystem access
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| osquery | — | osquery< 4.6.0 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.2 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| osquery | osquery | < 4.6.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-77 CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
4- https://github.com/osquery/osquery/commit/c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c
- https://github.com/osquery/osquery/releases/tag/4.6.0
- https://github.com/osquery/osquery/security/advisories/GHSA-4g56-2482-x7q8
- https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/SQL%20Injection/SQLite%20Injection.md#remote-command-execution-using-sqlite-command---load_extension
Provider assertions
2GitHub_M · cna
sqlite ATTACH allows some filesystem access
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4d7f4c0686e9c35c8a1ed725e783e7ef83b701bc66ce0548cef48dbc04c8ac05
- Ingested
- 23 Sep 2026, 07:49:46 UTC
- Source record
- Official CVE record