{"id":"CVE-2026-50006","revision":"62efa555e4d4444cb0a7a2a8a127683e","records":[{"revision":"62efa555e4d4444cb0a7a2a8a127683e","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-50006","aliases":[],"title":"Anyquery: Arbitrary File Write (AFW) which could lead to Remote Code Execution (RCE) via Unrestricted ATTACH DATABASE in Server Mode","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.","state":0,"publishedAt":"2026-09-14T19:56:39.502+00:00","modifiedAt":"2026-09-15T19:32:05.351+00:00","affected":[{"ecosystem":"Vendor product","name":"anyquery","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"julien040\",\n                    \"product\": \"anyquery\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 0.4.5\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1,"severity":"CRITICAL"}],"references":["https://github.com/julien040/anyquery/security/advisories/GHSA-xrcf-6jh3-ggvx","https://github.com/julien040/anyquery/commit/27f84fc168310455eaf81ec4ba87eed20298670c","https://github.com/julien040/anyquery/releases/tag/0.4.5"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-50006","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-50006","identifiers":["CVE-2026-50006"]},"retained":false,"historicalAffected":[]}],"coverage":[]}