Unauthenticated Remote Code Execution in DbGate JSON Script Runner
CVE-2026-47668 is a code injection vulnerability in the JSON script runner of DbGate versions 7.1.8 and earlier. The runner concatenates the attacker-controlled functionName parameter of JSON script assign commands directly into dynamically generated JavaScript without adequate validation. The generated JavaScript executes in a forked Node.js child process, allowing injected code to execute operating-system commands. The runner also concatenates user-controlled variableName values into generated code. Default Anonymous authentication permits exploitation without existing credentials; authenticated deployments remain vulnerable to users with the necessary API access. DbGate 7.1.9 fixes the vulnerability.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can completely compromise the confidentiality, integrity, and availability of the DbGate host within the privileges and isolation boundaries of the service process. An attacker can execute commands, access or modify data available to DbGate, and disrupt the service. Root-level command execution was demonstrated against DbGate 7.1.8, but root access depends on the privileges under which the service runs.
If you can’t patch tonight, do this now.
Until patched, restrict network access to the DbGate API, particularly /runners/start and related runner endpoints, to trusted administrators. Explicitly enable authentication and disable Anonymous authentication. Authentication reduces unauthenticated exposure but does not eliminate exploitation by users with API access. Monitor for suspicious runner requests and unexpected child-process or shell execution originating from DbGate.
Patch, then assume compromise.
Upgrade dbgate-serve to version 7.1.9 or later. Version 7.1.9 includes the patch and rejects the demonstrated malicious functionName input with an "Invalid functionName" error.
3 exploits validated by Mallory's analysis.
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.