CVE-2026-48017
CVE-2026-48017 · DbGate: Remote Code Execution via functionName injection in loadReader endpoint
This page contains facts from public vulnerability sources. Check the original advisory before updating.
DbGate is cross-platform database manager. In versions 7.1.8 and prior, the POST /runners/load-reader endpoint in DbGate accepts a functionName parameter that is directly interpolated into a JavaScript code template without any sanitization or validation. An authenticated user (with basic access, no special permissions required) can inject arbitrary JavaScript code that executes on the server with full process privileges, bypassing the require=null sandbox restriction. An authenticated user with basic access (no admin role, no run-shell-script permission required) can: execute arbitrary OS commands on the DbGate server with the privileges of the Node.js process, read/write any file accessible to the process, pivot to connected databases by reading connection credentials from DbGate's storage, and compromise the host system - in Docker deployments, this typically means root access within the container. Version 7.1.9 contains a patch.
CVSS 8.8 · High · EPSS 0.5% · Fix available
- Published
- Updated
Stack: node
Affected products and versions
dbgate
- Versions
- < 7.1.9: Affected
No fix published
dbgate-api npm
- Affected ranges
- SEMVER: < 7.1.9
Update to 7.1.9