CVE-2026-47253
HIGH 7.3CVSS 3.1Anyquery has Path Traversal through `clear_plugin_cache`, Allowing Arbitrary Directory Deletion
Anyquery is an SQL query engine built on top of SQLite. Prior to 0.4.5, the clear_plugin_cache(plugin) SQL scalar function in namespace/other_functions.go passes the caller-controlled plugin parameter through path.Join to os.RemoveAll without rejecting traversal segments. A low-privileged bearer-token holder can invoke the function through the /v1/query HTTP endpoint, causing path.Join to resolve .. segments outside $XDG_CACHE_HOME/anyquery/plugins/ and os.RemoveAll to recursively delete any reachable directory writable by the Anyquery server process. This causes permanent data loss and denial of service without disclosing file contents. This issue is fixed in version 0.4.5.
- Published
- 14 Sep 2026
- Last modified
- 30 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-22
- Also known as
- GHSA-j9rx-rppg-6hh4GO-2026-5459
- Sources
- NVDJSONOSV GHSA-j9rx-rppg-6hh4JSONOSV GO-2026-5459JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/julien040/anyquery | < 0.4.5 | 0.4.5 |
| OSV | Go | github.com/julien040/anyquery | all versions |
References
- https://github.com/julien040/anyquery/commit/27f84fc168310455eaf81ec4ba87eed20298670c
- https://github.com/julien040/anyquery/releases/tag/0.4.5 · WEB
- https://github.com/julien040/anyquery/security/advisories/GHSA-j9rx-rppg-6hh4 · WEB, ADVISORY
- https://github.com/julien040/anyquery · PACKAGE
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 14 Sep 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Jun 2026)