Vulnerability library
Security checkJune 05, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmdbgate

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the dbgate package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 7.1.8
  • Patched version(s): 7.1.9

References

Could your website be exposed too?

SmartScanner can check your website for DbGate: Zip Slip in archive/unzip allows arbitrary file write leading to RCE and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated June 05, 2026