Skip to content
OpenAdvisories
High · 7.3 CVE-2026-47253 EUVD-2026-77807GHSA-j9rx-rppg-6hh4GO-2026-5459

Anyquery: Path Traversal in `clear_plugin_cache` Allows Arbitrary Directory Deletion

Published Sep 14, 2026 · Updated Sep 14, 2026 · 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.

Affected products

VendorProductAffectedFixed
julien040 anyquery < 0.4.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/julien040/anyquery < 0.4.5 0.4.5 GHSA-j9rx-rppg-6hh4
Go github.com/julien040/anyquery all versions — GO-2026-5459

Advisories 1

References