Skip to content
OpenAdvisories
Critical · 9.3 CVE-2026-47669 EUVD-2026-48377GHSA-h535-j5hr-mv56

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

Published Jul 23, 2026 · Updated Jul 24, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
dbgate dbgate < 7.1.9 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm dbgate < 7.1.9 7.1.9 GHSA-h535-j5hr-mv56

References