CVE-2026-47668

DbGate: Unauthenticated Remote Code Execution via JSON Script Runner

Published Jul 23, 2026 CVSS 3.1 · 10 Critical EPSS 3.9% KEV · Not listed
Description
DbGate is cross-platform database manager. In versions 7.1.8 and prior, DbGate's JSON script runner (`POST /runners/start`) allows remote code execution via code injection in the `functionName` parameter of JSON script `assign` commands. The `functionName` value is interpolated directly into dynamically generated JavaScript source code via string concatenation. The generated code is then executed in a forked Node.js child process. Version 7.1.9 contains a patch.

Analysis

AI-generated

Technical impact

DbGate is a cross‑platform database manager. In versions 7.1.8 and earlier, its JSON script runner allows remote code execution by injecting code into the functionName parameter of assign commands within JSON scripts. The functionName is concatenated into JavaScript source code that is then executed in a Node.js child process. This leads to arbitrary code execution on the host, granting an attacker full control and the ability to exfiltrate data or disrupt services. The weakness is a combination of unsafe string handling (CWE-1188), lack of input validation (CWE-20), and a code‑generation vulnerability (CWE-94).

Affected Systems

The flaw exists in DbGate versions 7.1.8 and earlier. The affected vendor is dbgate, product dbgate. A user should verify if they run a vulnerable build and consider updating.

Risk and Exploitability

The CVSS score of 10 indicates critical severity. The EPSS score of 4% suggests a moderate exploitation probability. The vulnerability is not yet published in the CISA KEV catalog, but its remote nature and high impact make it a priority to remediate. Attackers can exploit the flaw via an unauthenticated HTTP POST to /runners/start, sending a malformed JSON payload containing a malicious functionName. The code is then executed on the system, potentially compromising confidentiality, integrity, and availability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the DbGate 7.1.9 patch or later to eliminate the vulnerable JSON Script Runner.
  • If immediate patching is not feasible, restrict network access to the /runners/start endpoint to trusted hosts only or disable the endpoint via firewall rules until the patch is applied.
  • Continuously monitor syslog and application logs for unexpected POST requests to /runners/start, and conduct integrity checks on the Node.js process to detect unauthorized execution.

Generated by OpenCVE AI on August 3, 2026 at 21:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8v3q-9vmx-36vc DbGate: Unauthenticated Remote Code Execution via JSON Script Runner
History
Type Values Removed Values Added
First Time appeared Dbgate
Dbgate dbgate
Vendors & Products Dbgate
Dbgate dbgate
Type Values Removed Values Added
Description DbGate is cross-platform database manager. In versions 7.1.8 and prior, DbGate's JSON script runner (`POST /runners/start`) allows remote code execution via code injection in the `functionName` parameter of JSON script `assign` commands. The `functionName` value is interpolated directly into dynamically generated JavaScript source code via string concatenation. The generated code is then executed in a forked Node.js child process. Version 7.1.9 contains a patch.
Title DbGate: Unauthenticated Remote Code Execution via JSON Script Runner
Weaknesses CWE-1188
CWE-20
CWE-94
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses
  • CWE-1188

    Initialization of a Resource with an Insecure Default

  • CWE-20

    Improper Input Validation

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 24, 2026, 3:56 AM
Reserved
May 19, 2026, 9:10 PM
Status
Deferred
Published
Jul 23, 2026, 6:16 PM
Modified
Jul 24, 2026, 5:16 AM