CWE-29Weakness · CWE-29

CVE-2025-50185

HIGH · 7.0 CVSS v4.0 Published 2025-07-26
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
76/100
Remediation priority · High
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
DbGate is cross-platform database manager. In versions 6.6.0 and below, DbGate allows unauthorized file access due to insufficient validation of file paths and types. A user with application-level access can retrieve data from arbitrary files on the system, regardless of their location or file type. The plugin fails to enforce proper checks on content type and file extension before reading a file. As a result, even sensitive files accessible only to the root user can be read through the application interface. There is currently no fix for this issue. ``` POST /runners/load-reader HTTP/1.1 Host: <REPLACE ME> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0 Accept: */* Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br Referer: <REPLACE ME> Content-Type: application/json Authorization: Bearer <REPLACE ME> Content-Length: 127 Origin: http://192.168.124.119:3000 Connection: keep-alive Cookie: <REPLACE ME> Priority: u=0 Cache-Control: max-age=0 {"functionName":"reader@dbgate-plugin-csv","props":{"fileName":"/etc\/shadow","limitRows":100}} ``` The request payload: ![Screenshot From 2025-05-31 22-54-49](https://github.com/user-attachments/assets/28943ad7-14f8-432a-9836-cec5c3593c0a) Lines of the file being returned: ![Screenshot From 2025-05-31 22-55-23](https://github.com/user-attachments/assets/4fae4652-097d-4d39-9f7a-6ce39346ed1d)

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

DbGate versions 6.6.0 and below contain a local file inclusion vulnerability in the dbgate-plugin-csv plugin. The /runners/load-reader endpoint accepts a fileName parameter without validating the file path, allowing any authenticated user to read arbitrary files on the system by specifying absolute paths like /etc/shadow. The plugin fails to enforce proper path traversal checks, content type validation, or restrict file access to expected directories.

MitigationUntil an official patch is released, restrict application access to trusted users only and consider network-level filtering to limit exposure. Monitor access logs for suspicious file read requests targeting system files.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
Authentication
X
User interaction
None
Scope
X

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify DbGate version
    Check the installed DbGate version via package.json, the application About page, or by running 'dbgate --version' if CLI is available
    Affected if Version is 6.6.0 or below (any version in the 6.x line up to 6.6.0)
  2. Verify dbgate-plugin-csv plugin is installed
    Inspect the plugins configuration or package list to confirm dbgate-plugin-csv is present and loaded
    Affected if The dbgate-plugin-csv plugin is installed and enabled in the DbGate configuration
  3. Confirm /runners/load-reader endpoint is accessible
    Check if the application exposes the /runners/load-reader API endpoint by reviewing routing configuration or testing the endpoint with a basic request
    Affected if The endpoint is exposed and accepts requests (regardless of authentication status)
  4. Review access logs for suspicious file read attempts
    Examine application and web server logs for requests to /runners/load-reader that include unusual file paths such as /etc/passwd, /etc/shadow, or Windows equivalents like C:\Windows\System32\config\sam
    Affected if Logs show requests with absolute file paths or path traversal patterns targeting system files outside expected directories

You are affected if DbGate version is 6.6.0 or below, the dbgate-plugin-csv plugin is enabled, and the /runners/load-reader endpoint is accessible to your users.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Until an official patch is released, restrict application access to trusted users only and consider network-level filtering to limit exposure. Monitor access logs for suspicious file read requests targeting system files.

Recommended fix High confidence
  1. Implement network-level segmentation to restrict access to the DbGate application to only trusted IP addresses or VPN
  2. If DbGate is exposed via web, place it behind a reverse proxy with authentication (e.g., OAuth2, LDAP) to ensure only authorized users can access the application
  3. Apply least-privilege principles: run the DbGate service with a dedicated low-privilege user that has minimal file system access
  4. Configure container/runtime-level restrictions using seccomp, AppArmor, or SELinux to limit file system read access for the DbGate process
  5. Monitor and audit all requests to /runners/load-reader endpoints for suspicious file path access patterns
  6. Consider disabling the CSV plugin if not required to reduce attack surface

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation12.0 h
  • Testing6.0 h
  • Review / QA3.0 h
24.0 hours of engineering $4,200
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,720.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-50185 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-50185 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data