---
id: CVE-2026-47253
title: Anyquery is an SQL query engine built on top of SQLite
summary: >-
  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 wi…
severity: high
cvss: 7.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H'
cwe:
  - CWE-22
vendor: julien040
product: anyquery
affected:
  - anyquery < 0.4.5
patched:
  - github.com/julien040/anyquery 0.4.5
published: '2026-09-14'
updated: '2026-09-14'
sourceUpdated: '2026-09-14T20:16:44.070'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-47253'
references:
  - url: >-
      https://github.com/julien040/anyquery/commit/27f84fc168310455eaf81ec4ba87eed20298670c
    label: security-advisories@github.com
  - url: 'https://github.com/julien040/anyquery/releases/tag/0.4.5'
    label: security-advisories@github.com
  - url: >-
      https://github.com/julien040/anyquery/security/advisories/GHSA-j9rx-rppg-6hh4
    label: security-advisories@github.com
  - url: >-
      https://github.com/julien040/anyquery/security/advisories/GHSA-j9rx-rppg-6hh4
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/advisories/GHSA-j9rx-rppg-6hh4'
tags:
  - nvd
  - cve.org
  - exploit-available
  - ghsa
  - go
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-14T20:09:28.666561Z'
aliases:
  - GHSA-j9rx-rppg-6hh4
ecosystem: go
ingestedAt: '2026-07-07T15:41:59.557Z'
epss: 0.00375
epssPercentile: 0.31467
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-47253)

Affected packages:

- `github.com/julien040/anyquery <= 0.4.4`

Patched in:

- `github.com/julien040/anyquery 0.4.5`

Source: https://github.com/advisories/GHSA-j9rx-rppg-6hh4
