Vulnerability library
Security checkJune 05, 2026

Authenticated Remote Code Execution via loadReader functionName code injection in DbGate

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmdbgate-api

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

DbGate is vulnerable to authenticated Remote Code Execution (RCE). Any user with valid DbGate credentials can execute arbitrary OS commands as root by exploiting an unsanitized functionName parameter in the /runners/load-reader endpoint. The require = null mitigation is trivially bypassed via dynamic import().


Recommendation

Update the dbgate-api package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 7.1.8
  • Patched version(s): 7.1.9

References

Could your website be exposed too?

SmartScanner can check your website for Authenticated Remote Code Execution via loadReader functionName code injection in DbGate and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated June 05, 2026