{"id":"CVE-2026-85737","state":"PUBLISHED","title":"Velociraptor: Low-priv analyst reads arbitrary server files via ungated sql() VQL plugin","description":"Velociraptor is a tool for collecting host-based state information using Velociraptor Query Language (VQL) queries. Prior to 0.77.2, SQLPlugin.Call in vql/parsers/sql/sql.go does not enforce plugin-level FILESYSTEM_READ or NETWORK checks before the mysql and postgres branches pass a caller-controlled connstring to sql.Open, allowing arbitrary outbound database connections. With attacker-controlled MySQL connection options that enable local-infile access, a rogue MySQL server can request files readable by the Velociraptor server process, including root-readable files when that process runs as root. The SQLite file accessor still enforces FILESYSTEM_READ, but a low-privilege analyst with ANY_QUERY can use the zero-permission data accessor and ATTACH DATABASE to create files without the plugin-level check. This issue is fixed in version 0.77.2.","publishedAt":"2026-11-06T20:23:33.445Z","updatedAt":"2026-11-10T20:09:49.636Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["Velocidex velociraptor"],"affected":[{"vendor":"Velocidex","product":"velociraptor","versions":[{"version":"< 0.77.2","status":"affected"}]}],"references":["https://github.com/Velocidex/velociraptor/security/advisories/GHSA-9qq5-422f-33c2","https://github.com/Velocidex/velociraptor/pull/4952","https://github.com/Velocidex/velociraptor/commit/d7de958e846d3742a7a3a8538fd463e4f12fc528","https://github.com/Velocidex/velociraptor/commit/f25390f8fbd00c888f0b7aaba2c061a51c3f7082","https://github.com/Velocidex/velociraptor/releases/tag/v0.77.2"],"weaknesses":["CWE-862"],"ingestedAt":"2026-11-10T20:22:04.596Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/85xxx/CVE-2026-85737.json","commit":"fc57b5d654d4e48fa8318f362c47d10daa8793b5","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-85737","state":"PUBLISHED","datePublished":"2026-11-06T20:23:33.445Z","dateUpdated":"2026-11-10T20:09:49.636Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-09-04T14:50:16.719Z"},"containers":{"cna":{"title":"Velociraptor: Low-priv analyst reads arbitrary server files via ungated sql() VQL plugin","descriptions":[{"lang":"en","value":"Velociraptor is a tool for collecting host-based state information using Velociraptor Query Language (VQL) queries. Prior to 0.77.2, SQLPlugin.Call in vql/parsers/sql/sql.go does not enforce plugin-level FILESYSTEM_READ or NETWORK checks before the mysql and postgres branches pass a caller-controlled connstring to sql.Open, allowing arbitrary outbound database connections. With attacker-controlled MySQL connection options that enable local-infile access, a rogue MySQL server can request files readable by the Velociraptor server process, including root-readable files when that process runs as root. The SQLite file accessor still enforces FILESYSTEM_READ, but a low-privilege analyst with ANY_QUERY can use the zero-permission data accessor and ATTACH DATABASE to create files without the plugin-level check. This issue is fixed in version 0.77.2."}],"affected":[{"vendor":"Velocidex","product":"velociraptor","versions":[{"version":"< 0.77.2","status":"affected"}]}],"references":[{"url":"https://github.com/Velocidex/velociraptor/security/advisories/GHSA-9qq5-422f-33c2","name":"https://github.com/Velocidex/velociraptor/security/advisories/GHSA-9qq5-422f-33c2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Velocidex/velociraptor/pull/4952","name":"https://github.com/Velocidex/velociraptor/pull/4952","tags":["x_refsource_MISC"]},{"url":"https://github.com/Velocidex/velociraptor/commit/d7de958e846d3742a7a3a8538fd463e4f12fc528","name":"https://github.com/Velocidex/velociraptor/commit/d7de958e846d3742a7a3a8538fd463e4f12fc528","tags":["x_refsource_MISC"]},{"url":"https://github.com/Velocidex/velociraptor/commit/f25390f8fbd00c888f0b7aaba2c061a51c3f7082","name":"https://github.com/Velocidex/velociraptor/commit/f25390f8fbd00c888f0b7aaba2c061a51c3f7082","tags":["x_refsource_MISC"]},{"url":"https://github.com/Velocidex/velociraptor/releases/tag/v0.77.2","name":"https://github.com/Velocidex/velociraptor/releases/tag/v0.77.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-862","lang":"en","description":"CWE-862: Missing Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-06T20:23:33.445Z"},"source":{"advisory":"GHSA-9qq5-422f-33c2","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/Velocidex/velociraptor/security/advisories/GHSA-9qq5-422f-33c2","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-10T20:09:28.559638Z","id":"CVE-2026-85737","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-10T20:09:49.636Z"}}]}}}