Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-26273
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:37 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-26273
Complete source record
{
"id": "a5e4542132363a58b13b28d6e666c51846f61dd50be4ef1f791e45cf84caccbe",
"url": "https://osv.dev/vulnerability/CVE-2020-26273",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-26273",
"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.",
"evidence": "osv:CVE-2020-26273",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2020-26273",
"aliases": [
"CVE-2020-26273",
"GHSA-4g56-2482-x7q8"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/osquery/osquery",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "6d0348ce29013852997f1dfb322776a00a849a18"
},
{
"fixed": "c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:linuxfoundation:osquery:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "4.6.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "6d0348ce29013852997f1dfb322776a00a849a18"
}
],
"source": "REFERENCES_TAG",
"original_tag": "4.6.0"
}
]
}
}
],
"versions": [
"4.5.1",
"4.5.0",
"4.4.0",
"4.3.0",
"4.2.0",
"4.1.2",
"4.1.1",
"4.1.0",
"4.0.2",
"4.0.1",
"4.0.0",
"3.3.2",
"3.3.1",
"3.3.0",
"3.2.9",
"3.2.8",
"3.2.7",
"3.2.6",
"3.2.5",
"3.2.4",
"3.2.3",
"3.2.2",
"3.2.1",
"3.2.0",
"3.1.0",
"3.0.0",
"2.11.2",
"2.11.1",
"2.11.0",
"2.10.4",
"2.10.3",
"2.10.2",
"2.10.1",
"2.10.0",
"2.9.2",
"2.9.1",
"2.9.0",
"2.8.1",
"2.8.0",
"2.7.0",
"2.6.1",
"2.6.0",
"2.5.3",
"2.5.2",
"2.5.1",
"2.5.0",
"2.4.7",
"2.4.6",
"2.4.5",
"2.4.4",
"2.4.3",
"2.4.2",
"2.4.1",
"2.4.0",
"2.3.4",
"2.3.3",
"2.3.2",
"2.3.1",
"2.3.0",
"2.2.3",
"2.2.2",
"2.2.1",
"2.2.0",
"2.1.2",
"2.1.1",
"2.1.0",
"2.0.0",
"1.8.2",
"1.8.1",
"1.8.0",
"1.7.7",
"1.7.6",
"1.7.5",
"1.7.4",
"1.7.3",
"1.7.2",
"1.7.1",
"1.7.0",
"1.6.4",
"1.6.3",
"1.6.2",
"1.6.1",
"1.6.0",
"1.5.3",
"1.5.2",
"1.5.1",
"1.5.0",
"1.4.7",
"1.4.6",
"1.4.5",
"1.4.4",
"1.4.3",
"1.4.2",
"1.4.1",
"1.4.0",
"1.3.1",
"1.3.0",
"1.2.2",
"1.2.1",
"1.2.0",
"1.1.0",
"1.0.5",
"1.0.4",
"1.0.3",
"1.0.2",
"v0.0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-26273.json",
"vanir_signatures": [
{
"id": "CVE-2020-26273-594be714",
"digest": {
"threshold": 0.9,
"line_hashes": [
"323092148361401953263353051791816970591",
"287192432492610531770355073319647372461",
"309688744272823896921534541655952813267"
]
},
"source": "https://github.com/osquery/osquery/commit/c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c",
"target": {
"file": "osquery/sql/sqlite_util.h"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2020-26273-646df085",
"digest": {
"threshold": 0.9,
"line_hashes": [
"336164696502260412209930134151258706575",
"318267059045087631338258772164851624958",
"112942747252535743954390474292271754413"
]
},
"source": "https://github.com/osquery/osquery/commit/c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c",
"target": {
"file": "osquery/sql/virtual_sqlite_table.cpp"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2020-26273-65949964",
"digest": {
"threshold": 0.9,
"line_hashes": [
"339045625409134106798750891985141601486",
"67621331453274203053663673589962257060",
"270767819296305013724017889174100000357",
"74940268170249099698712513317340137390",
"190350024325051745071917084535968197230",
"183837296081346439183443949888151273706",
"202888593459919327994695913045900317101",
"275060539219894719568612606418200634157",
"30450907078784790911342630041442303911",
"182704206408696144686785444934759822358",
"103104921065635135471707765250220966748",
"184536504254348880231467079991056942464"
]
},
"source": "https://github.com/osquery/osquery/commit/c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c",
"target": {
"file": "osquery/sql/tests/sqlite_util_tests.cpp"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2020-26273-7614357a",
"digest": {
"length": 542,
"function_hash": "260573230390650462451807012429309642435"
},
"source": "https://github.com/osquery/osquery/commit/c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c",
"target": {
"file": "osquery/sql/tests/sqlite_util_tests.cpp",
"function": "getTestDBC"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2020-26273-7bc2f60b",
"digest": {
"length": 483,
"function_hash": "189555362376929720897936059430643101734"
},
"source": "https://github.com/osquery/osquery/commit/c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c",
"target": {
"file": "osquery/sql/sqlite_util.cpp",
"function": "openOptimized"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2020-26273-81570f17",
"digest": {
"length": 1051,
"function_hash": "43894699758811653883809712441309831112"
},
"source": "https://github.com/osquery/osquery/commit/c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c",
"target": {
"file": "osquery/sql/virtual_sqlite_table.cpp",
"function": "genTableRowsForSqliteTable"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2020-26273-c576bc57",
"digest": {
"threshold": 0.9,
"line_hashes": [
"197881539519773300288113343518412662987",
"189810606929849274087611167759036797462",
"19530790863898619152418690965257857005",
"284165036328176243734376278538510633228",
"287401239895056639537001825334186584519",
"66953865082863556247397422003471989970",
"55309260973239139512372725315402551376",
"15856817258592611732752158148251981778",
"338717023122582292496290162624743567413",
"61587523182436795782095210339716545607",
"10640906893814025799204818490005318114",
"166222772854687451465044899701919486699",
"87178850483994636611371006640544381466",
"95448204127957587244458402853925014850",
"88442091455186425299720581537946140630"
]
},
"source": "https://github.com/osquery/osquery/commit/c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c",
"target": {
"file": "osquery/sql/sqlite_util.cpp"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2020-26273-e1cfa9bb",
"digest": {
"length": 793,
"function_hash": "203034125066537967012306001893251147299"
},
"source": "https://github.com/osquery/osquery/commit/c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c",
"target": {
"file": "osquery/sql/tests/sqlite_util_tests.cpp",
"function": "TEST_F"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:05:16Z"
}
}
],
"modified": "2026-10-20T14:05:16.332751202Z",
"provider": "osv",
"references": [
"https://github.com/osquery/osquery/releases/tag/4.6.0",
"https://github.com/osquery/osquery/commit/c3f9a3dae22d43ed3b4f6a403cbf89da4cba7c3c",
"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_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-26273",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388546,
"published_at": "2020-12-16T02:15:13.037+00:00"
}