Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/julien040/anyquery
  4. ›
  5. CVE-2026-47253

CVE-2026-47253: Anyquery has Path Traversal through `clear_plugin_cache`, Allowing Arbitrary Directory Deletion

June 10, 2026

The SQL scalar function clear_plugin_cache(plugin) in namespace/other_functions.go passes the caller-supplied plugin argument directly to path.Join and then to os.RemoveAll, with only an empty-string check as a guard. Because path.Join silently resolves .. segments, a low-privileged bearer-token holder can submit SELECT clear_plugin_cache('../../../../tmp/target') to the /v1/query HTTP endpoint and delete any directory reachable by the server process. In the verified scenario, a directory outside $XDG_CACHE_HOME/anyquery/plugins/ was successfully deleted, confirming full path-traversal exploitation.

References

  • github.com/advisories/GHSA-j9rx-rppg-6hh4
  • github.com/julien040/anyquery/releases/tag/0.4.5
  • github.com/julien040/anyquery/security/advisories/GHSA-j9rx-rppg-6hh4
  • nvd.nist.gov/vuln/detail/CVE-2026-47253

Code Behaviors & Features

Detect and mitigate CVE-2026-47253 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.4.5

Fixed versions

  • 0.4.5

Solution

Upgrade to version 0.4.5 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/julien040/anyquery/CVE-2026-47253.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:20 +0000.