Skip to main content

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

0
Critical
Published: 09/14/2026 (09/14/2026, 19:56:39 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, anyquery server forwards unauthenticated SQL from its MySQL-compatible server port to SQLite without restricting ATTACH DATABASE filesystem targets. A remote attacker can select any path writable by the Anyquery server process, cause SQLite to create a database file there, and place attacker-controlled table content in that file. This permits arbitrary file creation or overwrite, causing filesystem integrity loss and denial of service; remote code execution is possible only when another service interprets the written file or the process has a suitably privileged writable target. This issue is fixed in version 0.4.5.

CVSS v3.1

Score 9.1critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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:17:52 UTC

Technical Analysis

Anyquery is an SQL query engine built on SQLite. Versions before 0.4.5 forward unauthenticated SQL queries from the MySQL-compatible server port to SQLite without limiting the ATTACH DATABASE command's filesystem targets. This improper limitation (CWE-22) allows a remote attacker to select any writable path accessible by the anyquery server process, causing SQLite to create or overwrite database files with attacker-controlled content. This vulnerability leads to arbitrary file creation or overwrite, impacting filesystem integrity and availability. Remote code execution depends on external factors such as file interpretation by other services or privileged writable targets. The vulnerability is addressed in anyquery version 0.4.5.

Potential Impact

The vulnerability allows remote attackers to create or overwrite arbitrary files on the server's filesystem where the anyquery process has write permissions. This can lead to loss of filesystem integrity and denial of service. While direct remote code execution is not guaranteed, it is possible if the attacker-controlled files are interpreted by other services or if the overwritten files have privileged write access. The CVSS score is 9.1 (critical), reflecting high impact on integrity and availability with network attack vector and no required privileges or user interaction.

Mitigation Recommendations

Upgrade anyquery to version 0.4.5 or later, where this vulnerability is fixed by restricting ATTACH DATABASE filesystem targets. No other mitigations are specified or required once the official fix is applied.

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-06-02T22:46:02.578Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6aa852d455bf5e2cf5892f8c

Added to database: 09/14/2026, 20:02:28 UTC

Last enriched: 09/14/2026, 20:17:52 UTC

Last updated: 09/15/2026, 03:10:36 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