Description
bestzip versions 2.2.6 and 3.0.2 contain an argument injection vulnerability in the nativeZip function that allows attackers to inject arbitrary arguments to the Info-ZIP backend. Attackers can supply a malicious destination path combined with crafted source entries to execute arbitrary commands with Node.js process privileges. Fixed in 2.2.7 and 3.0.3.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nfriedly | bestzip | 2.2.6 – < 2.2.7, 3.0.2 – < 3.0.3 | 2.2.7 |
References
- GitHub Security Advisory (GHSA-xhwx-rch4-ph2v) vendor-advisory
- Fix commit (2.2.7, 3.0.3) patch
- Vulnerable nativeZip argument list at v3.0.2 technical-description
- GitHub Security Advisory (GHSA-p87m-9567-rgcc) related vendor-advisory
- https://www.npmjs.com/package/bestzip product
- https://github.com/nfriedly/node-bestzip product
- VulnCheck Advisory: bestzip 2.2.6 and 3.0.2 Argument Injection via the Native Zip Destination third-party-advisory