Security Digest · Vulnerability record

CVE-2026-47668: DbGate: Unauthenticated Remote Code Execution via JSON Script Runner

DbGate is cross-platform database manager.

CVSS 10.0 Critical EPSS 3.9% · p90

Should you act?

Critical and remotely reachable

No known exploitation yet, but it is network-reachable without credentials. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • Not in CISA KEV, but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
  • EPSS 3.9%, percentile 90: FIRST’s model estimates a 3.9% chance of exploitation activity in the next 30 days, higher than 90% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
  • Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
  • Only applies if your dependency tree includes dbgate-serve (npm) <= 7.1.8, fixed in 7.1.9. Check your lockfile, including transitive dependencies.

What it is

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.

From the GitHub advisory

Summary 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.

Details Step 1: User Input Entry Point

File: packages/api/src/controllers/runners.js - start() method

The /runners/start endpoint accepts a POST body containing a script object. When script.type == 'json', the request follows a different code path than raw shell scripts:

This path skips: 1. The run-shell-script permission check 2. The allowShellScripting platform-level check

Weakness type: CWE-20, CWE-94, CWE-1188.

Product: dbgate-serve (npm) · Assigned by: GitHub_M · Published: 2026-07-23

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
npmdbgate-serve<= 7.1.87.1.9
VendorProductAffected versions (per CVE record)
dbgatedbgate< 7.1.9

Severity scores

Scored byCVSSScoreVector
GitHub_M3.110 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
GitHub3.110.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Attack vector: network (remotely reachable)
  • Attack complexity: low
  • Privileges required: none (no login)
  • User interaction: none
  • Scope: changed (can affect other components)

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
  • CISA SSVC assessment: exploitation poc, automatable yes, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 3.88% probability of exploitation activity in the next 30 days; percentile 90.

Timeline

  • — GitHub-reviewed advisory GHSA-8v3q-9vmx-36vc published (critical)
  • — CVE record published by GitHub_M
  • — CVE record last updated

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vulnerability records

  1. GitHub Advisory GHSA-8v3q-9vmx-36vc github.com
  2. CVE.org record CVE-2026-47668 cve.org
  3. NVD entry CVE-2026-47668 nvd.nist.gov

Other references from the CVE record and advisory

  1. github.com github.com
  2. github.com github.com
  3. github.com github.com

Critical npm advisories · Today’s Security Digest