---
id: CVE-2026-50006
title: Anyquery is an SQL query engine built on top of SQLite
summary: >-
  Anyquery is an SQL query engine built on top of SQLite. Prior to 0.4.5,
  anyquery server forwards unauthenticated SQL from its MySQL-compatible server
  port to SQLite without restricting ATTACH DATABASE filesystem targets. A
  remote attacke…
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'
cwe:
  - CWE-22
  - CWE-73
  - CWE-284
  - CWE-434
  - CWE-862
vendor: julien040
product: anyquery
affected:
  - anyquery < 0.4.5
published: '2026-09-14'
updated: '2026-09-15'
sourceUpdated: '2026-09-15T20:17:16.780'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-50006'
references:
  - url: >-
      https://github.com/julien040/anyquery/commit/27f84fc168310455eaf81ec4ba87eed20298670c
    label: security-advisories@github.com
  - url: 'https://github.com/julien040/anyquery/releases/tag/0.4.5'
    label: security-advisories@github.com
  - url: >-
      https://github.com/julien040/anyquery/security/advisories/GHSA-xrcf-6jh3-ggvx
    label: security-advisories@github.com
  - url: >-
      https://github.com/julien040/anyquery/security/advisories/GHSA-xrcf-6jh3-ggvx
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/advisories/GHSA-xrcf-6jh3-ggvx'
tags:
  - nvd
  - cve.org
  - exploit-available
  - ghsa
  - go
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-09-15T19:31:47.618546Z'
epss: 0.00768
epssPercentile: 0.53601
aliases:
  - GHSA-xrcf-6jh3-ggvx
ecosystem: go
ingestedAt: '2026-07-14T18:38:32.866Z'
---

## Overview

Anyquery is an SQL query engine built on top of SQLite. Prior to 0.4.5, anyquery server forwards unauthenticated SQL from its MySQL-compatible server port to SQLite without restricting ATTACH DATABASE filesystem targets. A remote attacker can select any path writable by the Anyquery server process, cause SQLite to create a database file there, and place attacker-controlled table content in that file. This permits arbitrary file creation or overwrite, causing filesystem integrity loss and denial of service; remote code execution is possible only when another service interprets the written file or the process has a suitably privileged writable target. This issue is fixed in version 0.4.5.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-50006)

Affected packages:

- `github.com/julien040/anyquery < 0.4.5`

Source: https://github.com/advisories/GHSA-xrcf-6jh3-ggvx
