Skip to main content

CVE-2026-47253: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in julien040 anyquery

0
High
VulnerabilityCVE-2026-47253cvecve-2026-47253cwe-22
Published: 09/14/2026 (09/14/2026, 19:54:24 UTC)
Source: CVE Database V5
Vendor/Project: julien040
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H

Affected software

julien040

anyquery

Affected versions
<0.4.5

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/14/2026, 20:18:00 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses