Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. dbgate-serve
  4. ›
  5. CVE-2026-47668

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

June 5, 2026

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.

References

  • github.com/advisories/GHSA-8v3q-9vmx-36vc
  • github.com/dbgate/dbgate/releases/tag/v7.1.9
  • github.com/dbgate/dbgate/security/advisories/GHSA-8v3q-9vmx-36vc
  • github.com/runZeroInc/nuclei-templates/blob/main/http/vulnerabilities/dbgate-unauth-rce.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-47668

Code Behaviors & Features

Detect and mitigate CVE-2026-47668 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 7.1.9

Fixed versions

  • 7.1.9

Solution

Upgrade to version 7.1.9 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • 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')

Source file

npm/dbgate-serve/CVE-2026-47668.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:44 +0000.