Critical severity · published Sep 14, 2026
CVE-2026-50006
Anyquery: Arbitrary File Write (AFW) which could lead to Remote Code Execution (RCE) via Unrestricted ATTACH DATABASE in Server Mode
9.1
CVSS
1%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.0% · higher than 62% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AN
anyquery · julien040
< 0.4.5 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-50006
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-50006
github.com
https://github.com/julien040/anyquery/commit/27f84fc168310455eaf81ec4ba87eed20298670c
github.com
https://github.com/julien040/anyquery/releases/tag/0.4.5
github.com
https://github.com/julien040/anyquery/security/advisories/GHSA-xrcf-6jh3-ggvx
More from anyquery
9.0
CVE-2026-47252
Anyquery: AppleScript/JXA Code Injection via Unescaped URL in macOS plugins (Brave, Chrome, Edge, Reminders, Safari)
8.6
CVE-2026-54628
Anyquery: Server-Side Request Forgery (SSRF) via Unrestricted SQLite Virtual Table Modules in Server Mode
7.7
CVE-2025-61679
Anyquery Unauthenticated Access Vulnerability Exposes Private Integration Data
7.5
CVE-2026-54629
Anyquery: Local File Read (LFR) via Unrestricted SQLite Virtual Table Modules in Server Mode
7.3
CVE-2026-47253
Anyquery: Path Traversal in `clear_plugin_cache` Allows Arbitrary Directory Deletion
