ZeroHour

CVE-2026-54629

niche

Unauthenticated Arbitrary File Read in Anyquery Server (pre-0.4.5)

CVSS 3.1
7.5 high
EPSS
Published
()
Modified
AI analysis

Anyquery, an SQL query engine built on SQLite, exposes file-backed virtual table modules such as csv_reader and log_reader through its MySQL-compatible server port ('anyquery server') without any authentication, authorization, or directory restrictions in versions prior to 0.4.5. A remote attacker who can reach the server port can issue SQLite CREATE VIRTUAL TABLE statements pointing at arbitrary local file paths; the modules load those files (using hashicorp/go-getter within the server process) and return their contents as queryable table rows. This yields an unauthenticated arbitrary file disclosure limited only by the filesystem permissions of the server process, which can expose system configuration files, credentials, and private keys. Anyone running 'anyquery server' on a version before 0.4.5, especially on a network-reachable interface, is affected; the CLI-only use case is not exposed. The issue is fixed in version 0.4.5, and there is currently no known public PoC or evidence of in-the-wild exploitation.

What to do: Upgrade Anyquery to version 0.4.5 or later, which closes unauthenticated access to the file-backed virtual table modules. If server mode must be used before upgrading, bind it to localhost or restrict the MySQL-compatible port with a firewall, and run the process under a low-privilege account with minimal filesystem read access. Review logs for unexpected connections or CREATE VIRTUAL TABLE queries against local paths, and rotate any credentials or private keys that were readable by the server process.

Affected
anyquery< 0.4.5 (fixed in 0.4.5)
Estimated exposure
nicheunknown; plausibly at most hundreds to low thousands of self-hosted 'anyquery server' deployments reachable on a network — Anyquery is a niche open-source developer tool whose server mode is opt-in and typically run locally, and no plugin install counts or internet-scan data are available for it, so no reliable count can be derived.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Anyquery is an SQL query engine built on top of SQLite. Prior to 0.4.5, anyquery server exposes file-backed SQLite virtual table modules such as csv_reader and log_reader through its MySQL-compatible server port without authentication, authorization, or directory restrictions. A remote attacker can use SQLite CREATE VIRTUAL TABLE statements to provide a local path to these modules, which use hashicorp/go-getter under the Anyquery server process and return the selected file contents as queryable table rows. The disclosure is limited only by the filesystem permissions of the server process and can expose system configuration, credentials, and private keys. This issue is fixed in version 0.4.5.

Weakness
CWE-22, CWE-73, CWE-284, CWE-552, CWE-862
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

In the news

No ingested article mentions this CVE yet.