Go
CVE-2026-85737
Velociraptor: Low-priv analyst reads arbitrary server files via ungated sql() VQL plugin
- Severity
- Medium 6.5
- Published
- 9 Nov 2026
- Last changed
- 9 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.77.2
- Exploit chance
- 0.4% in the next 30 daysHigher than 34% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Missing authorization (CWE-862)
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Read data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N- Also known as
- GHSA-9qq5-422f-33c2
- Sources
- OSV.dev and GitHub
Description
The sql() VQL plugin runs a caller-supplied database driver and connection string with no permission check (vql/parsers/sql/sql.go:93, SQLPlugin.Call). For driver='mysql' or driver='postgres' the handle comes from GetHandleOther (sql.go:39), which passes the connection string straight to Go database/sql sql.Open (sql.go:51) and executes the query (sql.go:159).
The plugin declares FILESYSTEM_READ only as Info().Permissions metadata (sql.go:219). That metadata is never consulted at runtime: metadata.go:19 stores it as a string that only the documentation exporter reads (api/reflect.go:82-110). Every sibling network plugin (http_client, netcat, s3, rsyslog) calls CheckAccess(acls.NETWORK) in its own body; sql() calls nothing.
The built-in analyst role holds ANY_QUERY but not FILESYSTEM_READ or NETWORK (acls/roles.go:222), and reaches this sink through the notebook query API.
Affected software
| Software | Affected versions |
|---|---|
www.velocidex.com/golang/velociraptorGo · osv:Go:www.velocidex.com/golang/velociraptor |
|
About www.velocidex.com/golang/velociraptor
This is the only vulnerability in www.velocidex.com/golang/velociraptor in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-85737
- GitHub Advisory Database https://github.com/advisories/GHSA-9qq5-422f-33c2