CVE-2026-47253: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in julien040 anyquery
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.
AI Analysis
Technical Summary
Anyquery is an SQL query engine built on SQLite. Before version 0.4.5, the clear_plugin_cache(plugin) function in namespace/other_functions.go passes the caller-controlled plugin parameter through path.Join to os.RemoveAll without sanitizing traversal segments (e.g., '..'). This allows a low-privileged bearer-token holder to invoke the function via the /v1/query HTTP endpoint and cause path.Join to resolve paths outside the intended $XDG_CACHE_HOME/anyquery/plugins/ directory. Consequently, os.RemoveAll recursively deletes any directory writable by the Anyquery server process, leading to permanent data loss and denial of service. The vulnerability is addressed in version 0.4.5.
Potential Impact
Exploitation allows a low-privileged authenticated user to delete arbitrary directories writable by the Anyquery server process, resulting in permanent data loss and denial of service. There is no confidentiality impact as file contents are not disclosed.
Mitigation Recommendations
Upgrade to anyquery version 0.4.5 or later, where this path traversal vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
CVE-2026-47253: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in julien040 anyquery
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.
CVSS v3.1
Score 7.3high
Affected software
julien040
anyquery
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Anyquery is an SQL query engine built on SQLite. Before version 0.4.5, the clear_plugin_cache(plugin) function in namespace/other_functions.go passes the caller-controlled plugin parameter through path.Join to os.RemoveAll without sanitizing traversal segments (e.g., '..'). This allows a low-privileged bearer-token holder to invoke the function via the /v1/query HTTP endpoint and cause path.Join to resolve paths outside the intended $XDG_CACHE_HOME/anyquery/plugins/ directory. Consequently, os.RemoveAll recursively deletes any directory writable by the Anyquery server process, leading to permanent data loss and denial of service. The vulnerability is addressed in version 0.4.5.
Potential Impact
Exploitation allows a low-privileged authenticated user to delete arbitrary directories writable by the Anyquery server process, resulting in permanent data loss and denial of service. There is no confidentiality impact as file contents are not disclosed.
Mitigation Recommendations
Upgrade to anyquery version 0.4.5 or later, where this path traversal vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-18T22:54:18.273Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aa852d455bf5e2cf5892f8b
Added to database: 09/14/2026, 20:02:28 UTC
Last enriched: 09/14/2026, 20:18:00 UTC
Last updated: 09/15/2026, 03:59:27 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.