{"id":"CVE-2026-50006","summary":"Anyquery: Arbitrary File Write (AFW) which could lead to Remote Code Execution (RCE) via Unrestricted ATTACH DATABASE in Server Mode","details":"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.","aliases":["GHSA-xrcf-6jh3-ggvx","GO-2026-5979"],"modified":"2026-09-17T03:31:09.356199891Z","published":"2026-09-14T19:56:39.502Z","related":["openSUSE-SU-2026:21483-1"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-22","CWE-284","CWE-434","CWE-73","CWE-862"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50006.json"},"references":[{"type":"WEB","url":"https://github.com/julien040/anyquery/releases/tag/0.4.5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50006.json"},{"type":"ADVISORY","url":"https://github.com/julien040/anyquery/security/advisories/GHSA-xrcf-6jh3-ggvx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50006"},{"type":"FIX","url":"https://github.com/julien040/anyquery/commit/27f84fc168310455eaf81ec4ba87eed20298670c"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/julien040/anyquery","events":[{"introduced":"0"},{"fixed":"27f84fc168310455eaf81ec4ba87eed20298670c"},{"fixed":"66d5e684cd0a1a4086758aadaf3b22aee4e6e498"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"0.4.5"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["0.4.4","0.4.3","0.4.2","0.4.1","0.4.0","v0.1.6","0.3.1","v0.1.5","v0.1.4","0.3.0","0.2.2","0.2.1","0.2.0","v0.1.3","v0.1.2","0.1.3","0.1.2","v0.1.1","0.1.1","0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-50006.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"}]}