Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocate exposed SQL Chat instance
-
DeliveryPOST attacker-chosen DB host to /api/connection endpoint
-
ExploitServer proxies connection to internal database
-
ExecutionExecute SQL and enumerate schemas
-
ImpactExfiltrate data and pivot into internal network
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a network-reachable SQL Chat deployment whose /api/connection/* endpoints (execute.ts, test.ts) are exposed without an authenticating front-end - the default handlers enforce no authentication (PR:N/UI:N). The limiting factors captured by AC:H/AT:P: the attacker must know or discover reachable internal database hosts/ports, and accessing credential-protected databases requires valid or guessable credentials; instances that are only bound to localhost or fronted by authentication are not remotely exploitable. |
| Impact | The vendor CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/SC:H/SI:H, score 9.4) reflects real severity: network-reachable, unauthenticated (PR:N), with high confidentiality and integrity impact on both the vulnerable system and subsequent (internal) systems. The AC:H/AT:P metrics correctly signal that useful exploitation is not fully turnkey - the attacker must know or discover reachable internal database hosts and, for authenticated targets, valid credentials, which tempers automatability. No EPSS score, KEV listing, or POC is provided, so this is a high-severity design flaw rather than confirmed mass exploitation; the primary real-world risk is to any internet-exposed SQL Chat instance, where it becomes an internal-network reconnaissance and data-access springboard. Absence of KEV/EPSS data is a gap, not a downgrade - the design is inherently abusable once the endpoint is reachable. |
| Exploit ScenarioDerived | An attacker discovers an internet-exposed SQL Chat instance and sends an unauthenticated POST to /api/connection/test or /api/connection/execute specifying an internal database host (e.g., 10.0.0.5:5432) with a query. The server, acting as a proxy, connects to that internal database and returns results, letting the attacker enumerate schemas, exfiltrate data, and map the internal network. No public POC is confirmed, but the vulnerable handler files are publicly identified in the references. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 05, 2026
Server-side request forgery in SQL Chat (the open-source sqlchat AI database client) lets remote unauthenticated attackers abuse four API endpoints (including /api/connection/execute and /api/connection/test) that accept client-supplied database connection parameters and run arbitrary SQL against any attacker-named host. Because no authentication is enforced, an attacker can point the server at internal databases, enumerate schemas, execute queries, and pivot through the SQL Chat host into otherwise unreachable network segments. No public exploit identified at time of analysis, though the affected source files and a VulnCheck advisory pinpoint the exact vulnerable code.
RemediationAI
No vendor-released patch version is identified in the available data, so treat this as unpatched pending confirmation from the maintainers (track the VulnCheck advisory and GitHub issue #189). As compensating controls: place SQL Chat behind an authenticating reverse proxy or VPN so the /api/connection/* endpoints are never reachable by unauthenticated clients (trade-off: breaks any intended public/self-service use); enforce egress network filtering / an allowlist so the SQL Chat host can only reach the specific database servers it legitimately needs, blocking SSRF pivots to internal ranges (trade-off: must be maintained as backend inventory changes); and if the deployment does not need client-supplied connections, restrict or disable the execute.ts and test.ts connection endpoints. Consult the advisory at https://www.vulncheck.com/advisories/sql-chat-unauthenticated-database-connection-proxy-in-the-api-connection-endpoints before upgrading.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SQL Chat is a Next.js web application that lets users chat with databases; its API routes under src/pages/api/connection/ (execute.ts, test.ts, and related endpoints) take a full connection object - host, port, credentials, and query - from the request body and open an outbound database connection on the server's behalf. This is a textbook CWE-918 (SSRF): the server acts as a proxy that will initiate connections to arbitrary destinations chosen by the client. Combined with the absence of authentication on these routes, the application becomes an open database-connection relay. The referenced commit 665af875 files and GitHub issue #189 identify the specific handlers that trust unvalidated destination parameters.
Know when the next one hits your stack
- 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
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
Unauthenticated network SSRF (PR:N) but requires knowing reachable internal targets (AC:H); scope changes to backend databases (S:C) with high confidentiality/integrity, no direct availability impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
SQL Chat contains four unauthenticated API endpoints that accept client-supplied database connection parameters and execute arbitrary SQL queries against attacker-specified hosts. Attackers can connect to internal databases, execute SQL commands, enumerate schemas, and pivot into the server's network without authentication.
Executive ViewAI
SQL Chat, an open-source AI database client, contains a critical server-side request forgery vulnerability (CVSS 9.4) that permits unauthenticated remote attackers to execute arbitrary SQL against any internal database accessible from the SQL Chat host. This vulnerability bypasses network segmentation, allowing attackers to extract sensitive data or move laterally through your infrastructure without credentials. No patch is available, creating immediate risk for any organization running this software.
No vendor-released patch identified at time of analysis. Deploy interim mitigations: (1) restrict outbound database connections from SQL Chat hosts via firewall rules to only approved internal databases; (2) block or gate the four vulnerable API endpoints with authentication at your API gateway or reverse proxy; (3) implement Web Application Firewall rules to detect and block requests with suspicious database connection parameters; (4) enable comprehensive audit logging on all SQL Chat API calls and alert on cross-host or unusual database connection attempts; (5) segment the SQL Chat host network to limit lateral movement if compromised.
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
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
EUVD-2026-71955
GHSA-7xvg-gx2w-r5cc
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB