---
title: "CVE-2026-50006: Anyquery: Arbitrary File Write (AFW) which could lead to Remote Code Execution (RCE) via Unrestricted ATTACH DATABASE in Server Mode"
url: https://erroneo.us/security/cve/CVE-2026-50006/
description: "CVE-2026-50006 (github.com/julien040/anyquery (Go)): Anyquery is an SQL query engine built on top of SQLite. Prior to 0.4.5, anyquery server forwards…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-09-14
date_modified: 2026-09-15
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-50006"
kev: false
cvss: 9.1
epss: 0.00973
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-50006: Anyquery: Arbitrary File Write (AFW) which could lead to Remote Code Execution (RCE) via Unrestricted ATTACH DATABASE in Server Mode

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 1.0% , percentile 62: FIRST’s model estimates a 1.0% chance of exploitation activity in the next 30 days, higher than 62% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes github.com/julien040/anyquery (Go) < 0.4.5, no fixed version listed . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- Go `github.com/julien040/anyquery` < 0.4.5 → fixed: none listed

## Affected products (CVE record)

- julien040 anyquery: < 0.4.5

## Severity

- GitHub_M CVSS 3.1: 9.1 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub CVSS 3.1: 9.1 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.97% probability of exploitation activity in the next 30 days; percentile 62.

## Sources

- [GitHub Advisory GHSA-xrcf-6jh3-ggvx](https://github.com/advisories/GHSA-xrcf-6jh3-ggvx)
- [CVE.org record CVE-2026-50006](https://www.cve.org/CVERecord?id=CVE-2026-50006)
- [NVD entry CVE-2026-50006](https://nvd.nist.gov/vuln/detail/CVE-2026-50006)
- [github.com](https://github.com/julien040/anyquery/security/advisories/GHSA-xrcf-6jh3-ggvx)
- [github.com](https://github.com/julien040/anyquery/commit/27f84fc168310455eaf81ec4ba87eed20298670c)
- [github.com](https://github.com/julien040/anyquery/releases/tag/0.4.5)

---
Source page: https://erroneo.us/security/cve/CVE-2026-50006/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
