{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "0.77.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "d7de958e846d3742a7a3a8538fd463e4f12fc528"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "f25390f8fbd00c888f0b7aaba2c061a51c3f7082"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v0.77.2",
                "range": [
                  {
                    "fixed": "c0c9dd609140139efcb37c47e2afa79ed57e6c84"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c0c9dd609140139efcb37c47e2afa79ed57e6c84"
            },
            {
              "fixed": "d7de958e846d3742a7a3a8538fd463e4f12fc528"
            },
            {
              "fixed": "f25390f8fbd00c888f0b7aaba2c061a51c3f7082"
            }
          ],
          "repo": "https://github.com/velocidex/velociraptor",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-9qq5-422f-33c2"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-862"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85737.json"
  },
  "details": "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.",
  "id": "CVE-2026-85737",
  "modified": "2026-11-14T02:30:38.898613715Z",
  "published": "2026-11-06T20:23:33.445Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/Velocidex/velociraptor/releases/tag/v0.77.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85737.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Velocidex/velociraptor/security/advisories/GHSA-9qq5-422f-33c2"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-85737"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Velocidex/velociraptor/commit/d7de958e846d3742a7a3a8538fd463e4f12fc528"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Velocidex/velociraptor/commit/f25390f8fbd00c888f0b7aaba2c061a51c3f7082"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Velocidex/velociraptor/pull/4952"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Velociraptor: Low-priv analyst reads arbitrary server files via ungated sql() VQL plugin"
}