# CVE-2026-47670: DbGate OS command injection in load-reader endpoint

Source: https://junglewise.ai/threats/cve-2026-47670-dbgate-os-command-injection-in-load-reader-endpoint  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-23. Updated: 2026-07-23  
License: CC BY 4.0 with a link back

CVE-2026-47670 · Severity: critical · CVSS 4 · Published 2026-07-23

DbGate, a cross-platform database management tool, contains a vulnerability that allows authenticated users to execute arbitrary commands on the underlying server. By exploiting a flaw in how the application handles certain internal function requests, an attacker with valid login credentials can gain full control over the system, potentially acting as a root user. This could lead to total data theft, service disruption, or further attacks on the internal network.

Technologies: [DbGate](https://junglewise.ai/threats/technologies/dbgate). Vendors: [DbGate](https://junglewise.ai/threats/vendors/dbgate), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-47670 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-47670 being exploited in the wild.

**How severe is CVE-2026-47670?** Critical severity, with a CVSS score of 4, published 23 July 2026.

**Which products and versions are affected?** DbGate <= 7.1.8; dbgate-api (npm) <= 7.1.8, SEMVER:introduced=0,fixed=7.1.9.

**Is there a fix for CVE-2026-47670?** Yes. dbgate-api (npm): upgrade to 7.1.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-47670 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-47670?** Check whether you run DbGate or dbgate-api (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- dbgate-api (npm): upgrade to 7.1.9 or later

  ```sh
  npm install dbgate-api@7.1.9
  ```


## Technical details

An OS command injection vulnerability exists in DbGate's `/runners/load-reader` endpoint due to improper neutralization of the `functionName` parameter. The application interpolates this parameter directly into a dynamically generated JavaScript script template. An attacker can inject a newline character to break out of the template and execute arbitrary JavaScript. Although a previous mitigation attempted to disable the `require` function, attackers can bypass this using dynamic `import()` calls to load the `child_process` module. This allows for arbitrary command execution with the privileges of the application process (often root in Docker environments). The issue is resolved in version 7.1.9 by implementing validation for function and file names.

## Affected products

- DbGate DbGate <= 7.1.8

## Identifiers

- CVE-2026-47670
- GHSA-wm5r-5qp3-5vxf

## Timeline

- 2026-05-20: advisory: Initial security advisory published (GHSA-wm5r-5qp3-5vxf)
- 2026-07-23: disclosed: CVE-2026-47670 published to NVD
- 2026-04-22: patched: Version 7.1.9 released with security fixes

## References

- [https://github.com/dbgate/dbgate/releases/tag/v7.1.9](https://github.com/dbgate/dbgate/releases/tag/v7.1.9)
- [https://github.com/dbgate/dbgate/security/advisories/GHSA-wm5r-5qp3-5vxf](https://github.com/dbgate/dbgate/security/advisories/GHSA-wm5r-5qp3-5vxf)

## Related threats

- [DbGate missing authorization in connection management](https://junglewise.ai/threats/cve-2026-121455-dbgate-before-7-3-3-contains-a-missing-authorization)
- [DbGate path traversal in Files Endpoint](https://junglewise.ai/threats/cve-2026-101070-a-security-vulnerability-has-been-detected-in-dbgate-up-to-7-3-1)
- [DbGate arbitrary file write via path traversal in exportModelSql](https://junglewise.ai/threats/cve-2026-101069-a-weakness-has-been-identified-in-dbgate-up-to-7-3-1-affected-is)
- [DbGate path traversal in Create Connection Endpoint](https://junglewise.ai/threats/cve-2026-101068-a-security-flaw-has-been-discovered-in-dbgate-up-to-7-3-1-this)
- [DbGate path traversal in save-uploaded-file endpoint](https://junglewise.ai/threats/cve-2026-101067-a-vulnerability-was-identified-in-dbgate-up-to-6-8-1-7-0-2-7-1-8)
