---
id: "CVE-2026-85737"
page: "https://infrastack.ai/live/CVE-2026-85737"
kind: "vulnerability"
aliases: ["CVE-2026-85737"]
title: "Velociraptor: flawed SQL plugin lets queries read server files"
severity: "medium"
cvss: 6.5
epss: null
exploited: false
status: "open"
category: "other"
products: []
ecosystems: []
tags: ["dfir", "other", "self-hosted", "velociraptor"]
not_affected_if: ["no-untrusted-query-users", "upgraded-to-0.77.2"]
published_at: "2026-11-06T21:17:11+00:00"
first_seen_at: "2026-11-06T21:45:08+00:00"
updated_at: "2026-11-06T21:46:47+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-85737", "first_seen_at": "2026-11-06T21:45:08+00:00"}]
exploit_sources: []
---

# Velociraptor: flawed SQL plugin lets queries read server files

Link for people: https://infrastack.ai/live/CVE-2026-85737 (this .md is for agents)

The SQL plugin in Velociraptor opens outbound database connections without the file-read and network permission checks. A rogue MySQL server can make the Velociraptor server read files it can access, including root-readable files when it runs as root.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check whether the Velociraptor server version is below `0.77.2`.
- Check whether the server process runs as root.
- Check which users hold `ANY_QUERY` permission.

## Fix

- Velociraptor: move to `0.77.2` or later.

## Timeline

- 2026-11-06T21:45:08+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-85737

## Documents

- [advisory] Vendor advisory: github.com https://github.com/Velocidex/velociraptor/security/advisories/GHSA-9qq5-422f-33c2
- [fix] Patch: github.com https://github.com/Velocidex/velociraptor/commit/d7de958e846d3742a7a3a8538fd463e4f12fc528
- [fix] Patch: github.com https://github.com/Velocidex/velociraptor/commit/f25390f8fbd00c888f0b7aaba2c061a51c3f7082
- [fix] Release notes: github.com https://github.com/Velocidex/velociraptor/releases/tag/v0.77.2

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
