Anyquery: Arbitrary File Write (AFW) which could lead to Remote Code Execution (RCE) via Unrestricted ATTACH DATABASE in Server Mode
Published Sep 14, 2026
9.1
CRITICALCVSS 3.1
EPSS 0.97%
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.
Affected products
-
- Version < 0.4.5StatusaffectedConstraints-
- Version
No data.
No data.
No Red Hat product state for this CVE.
github.com/julien040/anyquery
Go
Introduced 0 Fixed not fixed
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/julien040/anyquery | 0 | not fixed |
Remediation
No remediation recorded yet.
References (5)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-77809 Advisory
- https://github.com/advisories/GHSA-xrcf-6jh3-ggvx Advisory
- https://github.com/julien040/anyquery/commit/27f84fc168310455eaf81ec4ba87eed20298670c x_refsource_MISC
- https://github.com/julien040/anyquery/releases/tag/0.4.5 x_refsource_MISC
- https://github.com/julien040/anyquery/security/advisories/GHSA-xrcf-6jh3-ggvx exploitx_refsource_CONFIRM
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-77809 | Advisory | |
| https://github.com/advisories/GHSA-xrcf-6jh3-ggvx | Advisory | |
| https://github.com/julien040/anyquery/commit/27f84fc168310455eaf81ec4ba87eed20298670c | x_refsource_MISC | |
| https://github.com/julien040/anyquery/releases/tag/0.4.5 | x_refsource_MISC | |
| https://github.com/julien040/anyquery/security/advisories/GHSA-xrcf-6jh3-ggvx | exploitx_refsource_CONFIRM |
Change history (0)
No recorded changes yet.