Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDiscover exposed MySQL port (8070)
-
DeliveryConnect unauthenticated via MySQL client
-
ExploitCREATE VIRTUAL TABLE with csv_reader on target path
-
ExecutionSELECT to read /etc/passwd and ~/.ssh/id_rsa
-
ImpactExfiltrate credentials and system config
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires Anyquery to be running in Server Mode ( |
| Impact | The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N = 7.5) describes a low-complexity, network-reachable, unauthenticated read of high-confidentiality data with no integrity or availability impact, and a published PoC confirms exploitation is trivial once the port is reachable. The critical mitigating factor NOT reflected in the base score is that Server Mode is an opt-in, non-default deployment - the operator must run |
| Exploit ScenarioDerived | An operator exposes Anyquery Server Mode on a routable interface ( |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 14, 2026
Local File Read in Anyquery's Server Mode lets unauthenticated network attackers exfiltrate arbitrary files (e.g. /etc/passwd, ~/.ssh/id_rsa) readable by the server process. When anyquery server is running and reachable, any client speaking the MySQL wire protocol can issue native SQLite CREATE VIRTUAL TABLE statements against built-in reader modules such as csv_reader or log_reader to point at restricted paths, with no authentication or credentials required (CVSS 3.1 base 7.5, C:H/I:N/A:N). A working proof-of-concept is published in the GHSA advisory, so publicly available exploit code exists; there is no CISA KEV listing or EPSS score in the provided data.
RemediationAI
Vendor-released patch: upgrade to Anyquery 0.4.5, which the vendor states adds sandboxing to Server Mode (commit 27f84fc adds sandboxing referenced against the related server-mode CVEs). Until you can upgrade, do not run anyquery server bound to a public or untrusted interface - bind only to 127.0.0.1 (avoid --host 0.0.0.0) and restrict the listener port (default port in the PoC is 8070) with host or network firewall rules so only trusted clients reach it; the trade-off is loss of intended remote query access. Additionally, run the Anyquery process under a dedicated low-privilege OS account with minimal filesystem read access so that even a successful LFR yields no sensitive files, and once on 0.4.5 use the sandboxing/path-restriction mechanism to confine read_* modules to designated directories. Advisory: https://github.com/julien040/anyquery/security/advisories/GHSA-mf78-3rpf-r784.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Anyquery is a Go-based query engine (package go/github.com/julien040/anyquery) that exposes arbitrary data sources through SQLite virtual tables, and in Server Mode emulates a MySQL server so standard MySQL clients can connect. Its ingestion modules wrap the hashicorp/go-getter library and expose file readers (csv_reader, log_reader, and other read_* modules) as SQLite virtual table modules. The flaw is CWE-22 class (path traversal / unrestricted path access): the server handler performs no input sanitization or directory allow-listing on the file path passed to these modules, so a caller can name any absolute or relative path and the Anyquery process reads it with its own OS privileges. Because virtual-table creation is a first-class SQL operation and the server enforces neither authentication nor a path sandbox, the SQL interface itself becomes a file-read primitive.
Know when Hashicorp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Unauthenticated MySQL-protocol client reads arbitrary files with trivial SQL, so AV:N/AC:L/PR:N/UI:N and C:H; no integrity or availability impact and no scope change.
Primary rating from Vendor (https://github.com/julien040/anyquery).
CVSS VectorVendor: https://github.com/julien040/anyquery
Lifecycle Timeline
2DescriptionCVE.org
Summary
Anyquery's server mode lacks input sanitization and access control over its built-in SQLite virtual table modules (e.g., csv_reader, log_reader). Unauthenticated attackers connecting to the MySQL-compatible server port can create virtual tables pointing to local files on the system (e.g., /etc/passwd, ~/.ssh/id_rsa). This allows full Local File Read (LFR) capabilities, compromising sensitive system configurations and credentials.
Details
Anyquery utilizes the hashicorp/go-getter library within its data ingestion modules. When Anyquery is launched in Server Mode (anyquery server), it binds to a TCP port and accepts MySQL protocol connections. The server handler does not restrict the usage of these virtual table modules to safe directories. An attacker can connect to the server and execute native SQLite virtual table creation queries to instantiate modules like csv_reader pointing to restricted files. Because the file read operation is initiated by the Anyquery server process, the attacker can read any file the process has access to.
PoC (Proof of Concept)
- Start the server on the victim machine:
anyquery server --host 0.0.0.0 --port 8070- Connect from an attacker machine:
mysql -u root -h <VICTIM_IP> -P 8070- Execute the following payload to read
/etc/passwd:
CREATE VIRTUAL TABLE passwd USING csv_reader('/etc/passwd');
SELECT * FROM passwd;Impact
- Confidentiality: High. Complete compromise of local file system confidentiality.
- Integrity: None.
- Availability: None.
- CVSS Score: 7.5 (High) -
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Remediation
Implement a sandboxing mechanism in Server Mode (e.g., a --restrict-paths flag) to limit read_* operations to designated directories.
Executive ViewAI
Anyquery server mode allows unauthenticated remote attackers to read arbitrary files through the MySQL protocol; publicly available exploit code exists. Any organization running Anyquery in server mode on accessible networks risks exfiltration of SSH keys, database credentials, and sensitive configuration data, enabling credential compromise and lateral movement.
Restrict network access to Anyquery server via firewall rules and network segmentation to administratively-controlled networks only; disable server mode entirely if business operations do not require it; implement continuous connection logging and network-based monitoring tuned for MySQL protocol anomalies; rotate all credentials accessible to the Anyquery service process; maintain detailed audit logs of network connections and file access attempts for forensic analysis and incident response.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio
Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai
HashiCorp Terraform’s Vault Provider (terraform-provider-vault) did not correctly configure GCE-type bound labels for Va
An XML external entity (XXE) vulnerability in the Password Vault Web Access (PVWA) of CyberArk Enterprise Password Vault
PhotoRange Photo Vault 1.2 appends the password to the URI for authorization, which makes it easier for remote attackers
The REST API in CyberArk Password Vault Web Access before 9.9.5 and 10.x before 10.1 allows remote attackers to execute
Server-side request forgery in bank-vaults vault-secrets-webhook (<= 1.22.2) lets a low-privileged tenant with ConfigMap
Account takeover in self-hosted Bitwarden Server before 2026.6.0 lets a low-privileged organization member steal any oth
vault-cli is a configurable command-line interface tool (and python library) to interact with Hashicorp Vault. Rated cri
The SRP-6a implementation in Kee Vault KeePassRPC before 1.12.0 is missing validation for a client-provided parameter, w
The SRP-6a implementation in Kee Vault KeePassRPC before 1.12.0 generates insufficiently random numbers, which allows re
Server-side request forgery in the Ruby css_parser gem (< 3.0.0) lets a remote unauthenticated attacker force the parsin
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-77808
GHSA-mf78-3rpf-r784
NVD
CVE.org
EPSS
Exploit-DB