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

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-05T16:39:38.000Z
- Modified: 2026-07-23T18:16:54.060Z
- Also known as: GHSA-hv83-ggc4-v385
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- dbgate dbgate: < 7.1.9
- dbgate-api (npm): before 7.1.9

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/dbgate/dbgate/security/advisories/GHSA-hv83-ggc4-v385> (exploit, web)
- <https://github.com/dbgate/dbgate/releases/tag/v7.1.9> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48017> (advisory)
- <https://github.com/dbgate/dbgate> (package)

## Sources

- CVE List: [CVE-2026-48017](https://www.cve.org/CVERecord?id=CVE-2026-48017), CVE Terms of Use, modified 2026-07-23
- GitHub Advisory Database: [GHSA-hv83-ggc4-v385](https://github.com/advisories/GHSA-hv83-ggc4-v385), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2026-48017](https://nvd.nist.gov/vuln/detail/CVE-2026-48017), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-48017 · Whole record: https://cve.day/CVE-2026-48017.json · Rebuilt by cve.day 2026-11-25T22:59:24.712Z
