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.
Published: 2026-11-06
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: Arbitrary file read
Action: Patch immediately
AI Analysis

Impact

Velociraptor’s VQL parser contains a flaw in the SQLPlugin.Call routine that does not enforce FILESYSTEM_READ or NETWORK permissions before building a database connection string for MySQL or PostgreSQL. An analyst possessing ANY_QUERY privilege can supply a MySQL connection string that enables local‑infile access, causing the service to connect to a malicious MySQL instance that requests files readable by the Velociraptor process, including files readable by root if the service runs with elevated privileges. Additionally, a low‑privilege analyst can exploit the SQLite data accessor by using the ATTACH DATABASE statement to create a database file, bypassing the plugin‑level check and exposing the local filesystem for read operations. The result is that an attacker can read any file that the Velociraptor process can access, leading to unauthorized disclosure of sensitive system data.

Affected Systems

All deployments of Velocidex Velociraptor running a version earlier than 0.77.2 are vulnerable. The issue was fixed in release v0.77.2, which reinstated the necessary FILESYSTEM_READ and NETWORK permission checks around database access.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate severity risk. EPSS data is not available, and the vulnerability is not listed in CISA KEV, suggesting no currently active, widespread exploitation. An attacker only needs the ability to submit arbitrary VQL queries; therefore environments where analysts have broad VQL privileges or where the Velociraptor process runs with root or highly privileged accounts pose a higher risk. Failure to mitigate this flaw could result in the disclosure of confidential or system‑level files on the host.

Generated by OpenCVE AI on November 6, 2026 at 23:05 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Velociraptor to version 0.77.2 or later to restore permission checks before opening any database connection
  • If a patch cannot be applied immediately, restrict analysts to VQL queries that do not include the ATTACH DATABASE statement or other features that can create files via the zero‑permission data accessor
  • Run the Velociraptor service under the least privileges required, avoiding execution as root or other highly privileged accounts to limit the scope of any potential file read

Generated by OpenCVE AI on November 6, 2026 at 23:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Nov 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Velocidex
Velocidex velociraptor
Vendors & Products Velocidex
Velocidex velociraptor

Fri, 06 Nov 2026 20:30:00 +0000

Type Values Removed Values Added
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.
Title Velociraptor: Low-priv analyst reads arbitrary server files via ungated sql() VQL plugin
Weaknesses CWE-862
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Velocidex Velociraptor
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-06T20:23:33.445Z

Reserved: 2026-09-04T14:50:16.719Z

Link: CVE-2026-85737

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-06T21:17:11.940

Modified: 2026-11-06T21:17:11.940

Link: CVE-2026-85737

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T23:15:12Z

Weaknesses