Skip to main content

DbGate EUVDEUVD-2026-85932

| CVE-2026-97225 MEDIUM
Code Injection (CWE-94)
2026-09-24 VulDB GHSA-wfmr-v458-6g7f
5.3
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to DbGate API (PR:L)
  2. Delivery
    Submit crafted comment.text/script.schedule with line terminator or @directive
  3. Exploit
    Injected text breaks out of generated '//' comment
  4. Execution
    Runner executes attacker JavaScript
  5. Impact
    Code execution as DbGate server process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated DbGate user (PR:L) able to reach the API and control the comment.text or script.schedule argument of the JSON Runner / scheduler feature - i.e., a user who can create or edit a runner/scheduled script's comment or schedule fields. Exploitation is remote and needs no user interaction, but is limited to versions up to 7.2.5-beta.5 (fixed in 7.2.5-beta.6) and gated by DbGate's permission model. The condition is that unsanitized comment/schedule text is passed to ScriptWriter and executed; deployments where untrusted or lower-privilege accounts can submit these fields are most exposed.

Impact

This is CVE-2026-97225, a CWE-94 code-injection flaw in DbGate's JSON Runner (packages/api/src/controllers/runners.js) affecting versions up to 7.2.5-beta.5. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L, base 5.3, E:X) treats this as network-reachable and authenticated (PR:L) with only LOW impact across all three dimensions. I DISPUTE the low impact rating: the source-code evidence shows user-controlled comment.text and @schedule text is embedded into a generated JavaScript script that DbGate then executes server-side, and the patch specifically escapes line terminators and '@' characters so attacker text can no longer break out of a '//' comment to inject executable code or forge '// @require dbgate-plugin-evil' / '// @schedule' directives. Successful breakout yields arbitrary JS execution as the DbGate API process (effectively RCE), which realistically warrants HIGH confidentiality/integrity/availability - so I assess ~8.8 (3.1) rather than 5.3, while noting VulDB likely scored impact low because DbGate's runner executes user scripts by design and this is partly a lower-privilege path to that capability. On exploitation signals: no CISA KEV listing, no EPSS score provided, and no public exploit code is referenced (only VulDB entries and vendor patch links) - so there is no evidence of active exploitation. Net: a genuine authenticated code-execution issue in a niche product; not a widespread emergency, but priority for any environment running DbGate with multiple/untrusted users. The disagreement between the raw 5.3 score and the RCE-class mechanism should be verified against the vendor advisory (GHSA-rfx7-cmmf-7ff7 referenced in the patch).

Exploit ScenarioDerived

An authenticated low-privilege DbGate user supplies crafted comment text or a schedule value containing a line terminator (e.g. \n or U+2028) followed by JavaScript, or an '@require'/'@schedule' directive substring. When DbGate's ScriptWriter generates the runner script and the API executes it, the injected content breaks out of the '//' comment line and runs as code - or loads an attacker-named plugin - executing on the DbGate server. No public proof-of-concept is referenced at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 24, 2026

Code injection in DbGate (a web-based database GUI) versions up to 7.2.5-beta.5 lets an authenticated user who can create or edit a JSON Runner or scheduled script inject text into the comment.text or script.schedule fields that escapes the generator's // comment wrapper and reconstitutes a // @require <module> or // @schedule directive, causing the server to load and execute attacker-supplied code. The flaw is remote, requires low privileges (PR:L) and no user interaction, and is limited to unpatched releases; it is fixed by upgrading to 7.2.5-beta.6 (upstream commit 70e7b6b58e464d7a015ba16e8d7574b420ee4877, PR #1527). There is no confirmed active exploitation (not in CISA KEV) and no public exploit identified at time of analysis, though the EPSS-style exposure is mitigated mainly by the requirement for an authenticated account with runner-editing rights. This issue is explicitly distinct from CVE-2026-47668.

RemediationAI

Vendor-released patch: upgrade to DbGate 7.2.5-beta.6 (release https://github.com/dbgate/dbgate/releases/tag/v7.2.5-beta.6); anyone building from source should apply upstream commit 70e7b6b58e464d7a015ba16e8d7574b420ee4877 (PR https://github.com/dbgate/dbgate/pull/1527), which anchors the // @require and // @schedule regexes to true line starts in runners.js and scheduler.js and makes ScriptWriter escape every @ and neutralize LF/CR/U+2028/U+2029 line terminators in comment and schedule text. Because exploitation requires an authenticated user with the ability to create or edit runner/scheduled-script comment and schedule fields, immediate compensating controls are to restrict runner-creation/editing permissions to trusted administrators and to treat any non-privileged account that can reach the API as potentially exploitable; audit existing runner and scheduled-script definitions for embedded @require or @schedule text or unusual line-terminator characters before or after patching, since a successfully injected directive may already have loaded a plugin (trade-off: auditing is read-only and safe). Additionally, restrict the DbGate server process's ability to install or load arbitrary node modules (for example, lock down the plugin directory, pin an allow-list of plugins, and block outbound access to package registries from the DbGate host) so an injected @require cannot pull a malicious plugin - this does not fix the injection itself and may break legitimate plugin installation. Network-level restriction of the DbGate API to trusted networks or a reverse-proxy allow-list reduces exposure but does not remediate the flaw for legitimate authenticated users. No vendor workaround beyond upgrading is documented in the available references; the provided CVSS 4.0 score (5.3, AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L) is lower than our independent CVSS 3.1 assessment (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), so prioritize patching accordingly.

Affected VersionsENISA

dbgate 7.2.5-beta.5
dbgate 7.2.5-beta.1
dbgate 7.2.5-beta.3
dbgate 7.2.5-beta.2
dbgate 7.2.5-beta.4
dbgate 7.2.5-beta.0

Affected Packages

euvd dbgate no fix

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 a Node.js/Electron database client whose API server package (packages/api) exposes controllers such as runners.js and scheduler.js for the JSON Runner feature. Those controllers scan the generated JavaScript emitted for a runner script with regular expressions looking for directives (// @require <module> and // @schedule <expr>); the matched module name is then loaded and executed, giving the directive-scanning logic the effective power of a code loader. The root cause is CWE-94 (Improper Control of Generation of Code): user-controlled strings - the JSON script's comment.text and its script.schedule - were interpolated into // ... comment lines by ScriptWriter (packages/tools/src/ScriptWriter.ts) without neutralizing JavaScript line terminators (LF, CR, U+2028, U+2029) or the @ character. Because the directive regexes were unanchored (they allowed // @require to appear mid-line), an attacker could place something like sometext // @require dbgate-plugin-evil inside a comment, or use U+2028/U+2029 to break out of the commented region entirely, and thereby smuggle a directive that the runner/scheduler would treat as legitimate generated code. The patch hardens both sides: the directive regexes are anchored to a true line start with the zero-width multiline ^ (tolerating CRLF and a leading BOM) and the writer escapes every @ and converts all line terminators so user text can never reconstruct a directive. Per the CPE data (cpe:2.3:a:n/a:dbgate:*), all DbGate builds before the 7.2.5-beta.6 fix are affected; note the fix commit also references advisory GHSA-rfx7-cmmf-7ff7.

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

Vendor (VulDB) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Authenticated (PR:L) remote code injection into a server-executed JS runner yields arbitrary code execution as the DbGate process, so C/I/A:H; no user interaction and low complexity.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A flaw has been found in DbGate up to 7.2.5-beta.5. This affects an unknown function of the file packages/api/src/controllers/runners.js of the component JSON Runner. Executing a manipulation of the argument comment.text/script.schedule can lead to code injection. The attack may be performed from remote. Upgrading to version 7.2.5-beta.6 mitigates this issue. This patch is called 70e7b6b58e464d7a015ba16e8d7574b420ee4877. Upgrading the affected component is advised. This issue is distinct from CVE-2026-47668.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
Open-source cross-platform database GUI, a niche developer utility
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Dbgate

View all

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy