CVE-2026-47669

DbGate: Zip Slip in archive/unzip allows arbitrary file write leading to RCE

Published Jul 23, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Dbgate
Dbgate dbgate
Vendors & Products Dbgate
Dbgate dbgate
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'}

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 24, 2026, 8:09 PM
Reserved
May 19, 2026, 9:10 PM
Status
Deferred
Published
Jul 23, 2026, 8:17 PM
Modified
Jul 28, 2026, 4:17 PM