CVE-2026-50006
Anyquery: Arbitrary File Write (AFW) which could lead to Remote Code Execution (RCE) via Unrestricted ATTACH DATABASE in Server Mode
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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.
Public exploit
A reference of the record is tagged as an exploit or proof of concept: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
- https://github.com/julien040/anyquery/security/advisories/GHSA-xrcf-6jh3-ggvx (opens in a new tab)x_refsource_CONFIRMexploit
Timeline
ID reserved
By GitHub_M
- 3 months later
· 3 months later
Published
- 1 day later
· 1 day later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Critical9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVDNVD · Deferred | 3.1 | Critical9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.97% · top 38% of all CVEs (8 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.1.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (opens in a new tab)All about CWE-22 and its CVEs
- CWE-73: External Control of File Name or Path (opens in a new tab)All about CWE-73 and its CVEs
- CWE-284: Improper Access Control (opens in a new tab)All about CWE-284 and its CVEs
- CWE-434: Unrestricted Upload of File with Dangerous Type (opens in a new tab)All about CWE-434 and its CVEs
- CWE-862: Missing Authorization (opens in a new tab)All about CWE-862 and its CVEs
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/julien040/anyqueryGHSA-xrcf-6jh3-ggvx (opens in a new tab)
References (3)
- https://github.com/julien040/anyquery/security/advisories/GHSA-xrcf-6jh3-ggvx (opens in a new tab)x_refsource_CONFIRMexploit
- https://github.com/julien040/anyquery/commit/27f84fc168310455eaf81ec4ba87eed20298670c (opens in a new tab)x_refsource_MISC
- https://github.com/julien040/anyquery/releases/tag/0.4.5 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-xrcf-6jh3-ggvx (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-50006)Record last updated .