Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to DbGate with any valid low-privilege account
-
DeliverySend crafted jsldata API request with file:// scheme jslid parameter
-
ExploitgetJslFileName() resolves path outside data directory
-
ExecutionRead connections config file containing encrypted database credentials
-
ImpactUse or decrypt stolen credentials to access all managed databases
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
|
| Exploitation Conditions | Exploitation requires a valid DbGate session with at least low-privilege access (PR:L confirmed by CVSS vector) - unauthenticated exploitation is not possible. No elevated role or administrator privilege within DbGate is needed beyond the ability to issue API requests to the jsldata controller. The DbGate API must be reachable by the attacker (network access to the server port). The DbGate server process must have OS-level read permission on the targeted file for information disclosure, or write permission for the write primitive - default single-user and shared-team deployments typically run as the invoking user with broad permissions, making this condition met in most real installations. No special non-default configuration is required; the vulnerable parameter is present in the standard controller in all versions through 7.2.6. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) accurately reflects a no-complexity network attack requiring only a valid low-privilege account - the primary limiting factor and the key distinction from a fully critical unauthenticated flaw. The credential-theft angle dramatically amplifies real-world risk: DbGate's value proposition is centralizing access to many databases, so reading the connections configuration produces a master key to the operator's entire managed database estate. Even a mid-sized municipal IT team in olsztyn using DbGate as a shared DBA interface would face a total database estate compromise if any single DbGate account were phished or reused from a breach. The write primitive further raises the ceiling by enabling config tampering or potentially placing malicious content in writable paths. No public exploit code has been identified at time of analysis, and EPSS data is absent from the input, so exploitation probability cannot be quantified beyond inferring from code visibility: the vulnerable parameters and file paths are publicly documented in GitHub references, materially lowering attacker effort. The main structural mitigant is the PR:L requirement - shared or multi-tenant DbGate deployments are at higher risk than single-user local installs. |
| Exploit ScenarioDerived | An attacker with any valid DbGate account sends a crafted GET request to the jsldata controller with a jslid value of file:///home/dbgate/.dbgate/connections.yaml (or the platform-equivalent path). The server resolves the path through getJslFileName() without bounds checking and returns the connections configuration file, which contains encrypted database credentials. The attacker recovers or brute-forces those credentials and connects directly to all managed database servers, bypassing DbGate entirely. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 03, 2026
Arbitrary file read and write in DbGate through version 7.2.6 allows authenticated low-privilege users to escape the application's data directory by supplying file:// scheme URIs in the jslid parameter of the jsldata controller. The root function getJslFileName() performs no directory containment validation, exposing the full server filesystem to the DbGate process's OS-level permissions. The most critical consequence is exfiltration of encrypted database credentials from the connections configuration, enabling lateral movement to every database managed through the tool; the write primitive adds configuration tampering and potential code-plant risk.
RemediationAI
No vendor-released patched version has been identified in the available references at time of analysis. Operators should monitor the DbGate GitHub issue tracker (https://github.com/dbgate/dbgate/issues/1502) and the main repository (https://github.com/dbgate/dbgate) for a fix release. As compensating controls: restrict DbGate access strictly to trusted personnel, since the exploit requires an authenticated session and reducing the account population reduces exposure. Run the DbGate process under a dedicated low-privilege OS account with filesystem permissions scoped only to its data directory, preventing traversal to sensitive paths even if the parameter is supplied - note this may break DbGate features that legitimately access other paths. For containerized deployments, mount only the necessary directories and use read-only mounts for paths outside the working data directory. If DbGate is accessible over a network, place it behind an additional authentication layer (VPN, SSO proxy) to limit who can reach the API at all.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
DbGate is an open-source, cross-platform database manager that exposes a Node.js API backend. Its jsldata controller handles internal JSL (JavaScript Lines) file references, with the jslid query parameter controlling which file is resolved. The utility function getJslFileName() in packages/api/src/utility/getJslFileName.js translates that parameter into a filesystem path without sanitizing file:// URIs or enforcing that the resolved path stays within a designated data directory. This is a textbook CWE-73 (External Control of File Name or Path) flaw: user-supplied input directly governs a filename or path used in a privileged server-side operation. The vulnerable code is confirmed present in the v7.2.6 tag of the GitHub repository. CPE cpe:2.3:a:dbgate:dbgate:*:*:*:*:*:*:*:* covers all versions through 7.2.6.
Know when Dbgate 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable with no complexity; PR:L for required authentication; C:H/I:H/A:H reflect arbitrary file read, write, and potential config corruption; S:U because downstream database compromise requires independent credential use.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
DbGate fails to validate jslid parameters in the jsldata controller, allowing authenticated users to read and write arbitrary files via file:// scheme resolution. Attackers can exploit getJslFileName() to bypass directory containment and access sensitive files including encrypted database credentials stored in connections configuration.
Executive ViewAI
DbGate database management tool through version 7.2.6 contains a file access vulnerability allowing any authenticated user-even those with minimal privileges-to read and write arbitrary files on the server hosting the application. This directly exposes encrypted database credentials stored in DbGate's configuration, enabling attackers to move laterally to every database the tool manages. Organizations managing multiple production databases through DbGate face credential compromise and potential breach of all connected systems.
Restrict DbGate network access to specific trusted networks via firewall; minimize authenticated user accounts to essential administrators only; implement file access monitoring on DbGate configuration directories; disable or block file:// URI scheme handling in DbGate configuration if the option exists; immediately rotate credentials for all databases managed through DbGate; implement network segmentation to isolate DbGate from production database networks where feasible; monitor production database systems for suspicious connection attempts that may indicate credential reuse from a compromised DbGate server; no public exploit identified at time of analysis.
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
Path traversal in DbGate 7.3.1 and earlier allows unauthenticated remote attackers to read arbitrary files from the serv
Path traversal in DbGate versions up to 6.8.1, 7.0.2, 7.1.8, 7.2.5, and 7.3.1 allows remote attackers to write files out
Path traversal in DbGate versions up to 7.3.1 allows unauthenticated remote attackers to write arbitrary files via the o
Path traversal in DbGate versions up to 7.3.1 allows unauthenticated remote attackers to write arbitrary files via the C
Unauthenticated remote path traversal in DbGate through 7.3.1 allows attackers to manipulate the linkedFolder argument i
Code injection in DbGate (a web-based database GUI) versions up to 7.2.5-beta.5 lets an authenticated user who can creat
DbGate before 7.3.3 does not enforce LOGIN_PERMISSIONS connection restrictions on the /connections/test and /connections
Authenticated path traversal in DbGate's files-style API endpoint lets a low-privileged remote user read files outside t
Server-side request forgery in DbGate versions 7.1.0 through 7.1.4 allows authenticated remote attackers to manipulate t
Cross-site scripting in DbGate's SVG Icon String Handler allows a remote authenticated attacker to inject malicious scri
EUVD-2026-70480
GHSA-jw66-5j32-j2m2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB