CVE-2026-47668

dbgate · dbgate

DbGate is vulnerable to unauthenticated remote code execution via the JSON script runner endpoint, allowing attackers to inject and execute arbitrary JavaScript in a Node.js child process.

Executive summary

A critical remote code execution vulnerability in DbGate allows unauthenticated attackers to compromise the underlying host system via the JSON script runner.

Vulnerability

The application fails to validate the functionName parameter within the POST /runners/start endpoint. This allows an unauthenticated attacker to inject code into dynamically generated JavaScript, which is then executed within a Node.js child process.

Business impact

This vulnerability grants an attacker complete control over the host environment. The impact includes unauthorized access to connected databases, lateral movement within the network, and potential data exfiltration. The CVSS score of 10.0 reflects the absolute severity of this unauthenticated RCE condition.

Remediation

Immediate Action: Update dbgate-serve to version 7.1.9 or later immediately.

Proactive Monitoring: Monitor for unauthorized POST requests to the /runners/start endpoint and investigate any unexpected child processes spawned by the dbgate service.

Compensating Controls: Restrict network access to the DbGate management interface using IP allowlisting or VPNs to ensure only authorized personnel can access the application.

Exploitation status

Public Exploit Available: Yes, a public proof-of-concept repository exists on GitHub.

Analyst recommendation

This vulnerability is of the highest severity and is currently subject to public proof-of-concept code. Immediate patching to version 7.1.9 is essential to prevent system takeover.