# CVE-2026-50006: Anyquery: Arbitrary File Write (AFW) which could lead to Remote Code Execution (RCE) via Unrestricted ATTACH DATABASE in Server Mode

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-14T18:33:57.000Z
- Modified: 2026-09-30T17:51:56.193Z
- Also known as: GHSA-xrcf-6jh3-ggvx, GO-2026-5979
- Weaknesses: CWE-22, CWE-73, CWE-284, CWE-434, CWE-862
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- julien040 anyquery: < 0.4.5
- github.com/julien040/anyquery (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/julien040/anyquery/security/advisories/GHSA-xrcf-6jh3-ggvx> (exploit, advisory, web)
- <https://github.com/julien040/anyquery/commit/27f84fc168310455eaf81ec4ba87eed20298670c>
- <https://github.com/julien040/anyquery/releases/tag/0.4.5> (web)
- <https://github.com/julien040/anyquery> (package)

## Sources

- CVE List: [CVE-2026-50006](https://www.cve.org/CVERecord?id=CVE-2026-50006), CVE Terms of Use, modified 2026-09-15
- GitHub Advisory Database: [GHSA-xrcf-6jh3-ggvx](https://github.com/advisories/GHSA-xrcf-6jh3-ggvx), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5979](https://pkg.go.dev/vuln/GO-2026-5979), CC-BY-4.0, modified 2026-07-21
- NVD: [CVE-2026-50006](https://nvd.nist.gov/vuln/detail/CVE-2026-50006), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-50006 · Whole record: https://cve.day/CVE-2026-50006.json · Rebuilt by cve.day 2026-11-25T22:59:38.357Z
