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

Critical 10.0 Published Updated

Unauthenticated attackers can execute arbitrary code by injecting JavaScript into the functionName parameter of DbGate's JSON script runner.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-47668?

CVE-2026-47668 is a critical code injection vulnerability in dbgate, published on 23 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

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

Which versions are affected by CVE-2026-47668?

2 open source packages ship an affected version, including dbgate-serve.

PackageAffectedFixed in
dbgate-serve npmAll versions7.1.9
dbgate-serve npmAll versions7.1.9

How do I fix CVE-2026-47668?

Upgrade dbgate-serve to 7.1.9 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-47668 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47668 exists.

Public exploit code: 1 Nuclei template and 2 proofs of concept on GitHub.

Sources

Also known as GHSA-8v3q-9vmx-36vc.

Is CVE-2026-47668 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free