Impact
Clear_plugin_cache, a scalar function in Anyquery, accepted a plugin name that was passed through path.Join to os.RemoveAll without validating for traversal segments. This flaw allowed an attacker to craft a request that resolved to directories outside the intended plugin cache location and delete them. The vulnerability is a classic path traversal (CWE‑22) that can cause irreversible data loss and server disruption without exposing file contents.
Affected Systems
Anyquery, versions earlier than 0.4.5, deployed by the vendor julien040. Any installation that exposes the /v1/query HTTP endpoint and uses bearer‑token authentication is susceptible.
Risk and Exploitability
The flaw carries a CVSS score of 7.3, indicating high impact. The EPSS score is not available and the issue is not listed in the CISA KEV catalog. Attackers holding a low‑privileged bearer token can invoke the vulnerable function over HTTP, making exploitation straightforward in exposed environments.
OpenCVE Enrichment
Github GHSA