Description
DbGate is cross-platform database manager. In versions 7.1.8 and prior, the `unzipDirectory()` function in `packages/api/src/shell/unzipDirectory.js` (line 27) does not validate that extracted file paths stay within the output directory. A malicious ZIP with `../` entries writes files anywhere on the filesystem. In the default Docker deployment, DbGate runs as root and the `none` auth provider issues JWT tokens without credentials via `POST /auth/login`, so this is exploitable by any network-adjacent attacker. Version 7.1.9 fixes the issue.
Published: 2026-07-23
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

DbGate is a cross‑platform database manager. In versions 7.1.8 and earlier, the unzipDirectory() function fails to constrain extracted files to the intended output directory. A malicious ZIP archive containing '../' path traversal entries can cause the application to write files anywhere on the filesystem. In the default Docker deployment, DbGate runs as root and the default authentication provider issues JWT tokens without requiring credentials via POST /auth/login. Therefore any network‑adjacent attacker can supply a crafted ZIP through the API and trigger arbitrary file writes, potentially leading to full remote code execution. The vulnerability corresponds to CWE‑22, an absolute path traversal flaw.

Affected Systems

DbGate database manager version 7.1.8 and earlier are affected. The product is maintained by the vendor dbgate:dbgate. The vulnerability was fixed in version 7.1.9, which includes proper path validation and error handling during extraction.

Risk and Exploitability

The CVSS score of 9.3 indicates critical severity, yet the EPSS score is reported as < 1 %, indicating a low immediate probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. In the default Docker deployment, DbGate runs as root and the none authentication provider issues JWT tokens without requiring credentials via POST /auth/login. Consequently, any network‑adjacent attacker who can reach the container’s API can exploit the flaw by submitting a malicious ZIP archive and triggering arbitrary file writes with elevated privileges.

Generated by OpenCVE AI on August 3, 2026 at 21:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade DbGate to version 7.1.9 or later, which includes correct path validation during extraction.
  • If upgrading is not immediately possible, restrict network access to the DbGate Docker service, blocking unauthenticated or external access to the /auth/login endpoint.
  • Re‑run the container with a non‑root user or adjust the host filesystem permissions to prevent arbitrary writes from the container process.
  • Reconfigure the authentication provider to require valid credentials instead of auto‑issuing JWTs for all users.

Generated by OpenCVE AI on August 3, 2026 at 21:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-h535-j5hr-mv56 DbGate: Zip Slip in archive/unzip allows arbitrary file write leading to RCE
History

Fri, 24 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 24 Jul 2026 00:00:00 +0000

Type Values Removed Values Added
First Time appeared Dbgate
Dbgate dbgate
Vendors & Products Dbgate
Dbgate dbgate

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
Description DbGate is cross-platform database manager. In versions 7.1.8 and prior, the `unzipDirectory()` function in `packages/api/src/shell/unzipDirectory.js` (line 27) does not validate that extracted file paths stay within the output directory. A malicious ZIP with `../` entries writes files anywhere on the filesystem. In the default Docker deployment, DbGate runs as root and the `none` auth provider issues JWT tokens without credentials via `POST /auth/login`, so this is exploitable by any network-adjacent attacker. Version 7.1.9 fixes the issue.
Title DbGate: Zip Slip in archive/unzip allows arbitrary file write leading to RCE
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-24T20:09:54.441Z

Reserved: 2026-05-19T21:10:38.797Z

Link: CVE-2026-47669

cve-icon Vulnrichment

Updated: 2026-07-24T20:09:50.624Z

cve-icon NVD

Status : Deferred

Published: 2026-07-23T20:17:08.357

Modified: 2026-07-28T16:17:16.127

Link: CVE-2026-47669

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T21:15:04Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')