{"id":"CVE-2026-50006","published":"2026-09-14T19:56:39Z","modified":"2026-09-15T19:32:05Z","title":"Anyquery: Arbitrary File Write (AFW) which could lead to Remote Code Execution (RCE) via Unrestricted ATTACH DATABASE…","vendor":"julien040","product":"anyquery","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00973,"percentile":0.62886,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-73","name":"External Control of File Name or Path"},{"id":"CWE-284","name":"Improper Access Control"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"},{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://github.com/julien040/anyquery/security/advisories/GHSA-xrcf-6jh3-ggvx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/julien040/anyquery/commit/27f84fc168310455eaf81ec4ba87eed20298670c","tags":["x_refsource_MISC"]},{"url":"https://github.com/julien040/anyquery/releases/tag/0.4.5","tags":["x_refsource_MISC"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":12.58},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"julien040","affectedVersions":[{"vendor":"julien040","product":"anyquery","versions":["< 0.4.5"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-09-15T19:31:47.618546Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/julien040/anyquery","vulnerableRanges":["<0.4.5","all versions"],"patched":[],"from":["GHSA-xrcf-6jh3-ggvx","GO-2026-5979"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-77809","exploited":false,"provenance":"source"}}