# CVE-2026-47253: Anyquery: Path Traversal in `clear_plugin_cache` Allows Arbitrary Directory Deletion

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/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.38%, higher than 33% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-10T17:11:53.000Z
- Modified: 2026-09-30T19:08:43.927Z
- Also known as: GHSA-j9rx-rppg-6hh4, GO-2026-5459
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/julien040/anyquery/security/advisories/GHSA-j9rx-rppg-6hh4> (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-47253](https://www.cve.org/CVERecord?id=CVE-2026-47253), CVE Terms of Use, modified 2026-09-14
- GitHub Advisory Database: [GHSA-j9rx-rppg-6hh4](https://github.com/advisories/GHSA-j9rx-rppg-6hh4), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5459](https://pkg.go.dev/vuln/GO-2026-5459), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-47253](https://nvd.nist.gov/vuln/detail/CVE-2026-47253), Public domain, modified 2026-09-30

---

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