Anyquery
Anyquery: Local File Read (LFR) via Unrestricted SQLite Virtual Table Modules in Server Mode
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.4.5
Fixed in 0.4.5
Mitigation
Upgrade anyquery to 0.4.5 or later.
References
- Vendor advisory github.com/julien040/anyquery/security/advisor…
- Patch github.com/julien040/anyquery/commit/27f84fc16…
- Release notes github.com/julien040/anyquery/releases/tag/0.4…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.