Description
@mborne/extract before 0.2.1 contains an OS command injection vulnerability that allows attackers to execute commands by supplying shell metacharacters in archivePath or targetDir options. Attackers controlling these values passed to extract() can inject commands into unquoted shelljs exec() strings in the unzip, 7z, tar-bz2 and gz extractors, running them with Node.js process privileges.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mborne | @mborne/extract | < 0.2.1 | 0.2.1 |
References
- https://github.com/mborne/node-extract/pull/8 patch issue-tracking
- https://github.com/mborne/node-extract/commit/585e5b29657379e73c04f6f950ea8dc5319f8ae1 patch
- v0.2.1 Release Notes release-notes
- https://github.com/mborne/node-extract/blob/v0.2.0/src/extractor/unzip.js#L17-L19 technical-description
- VulnCheck Advisory: @mborne/extract before 0.2.1 OS Command Injection via archivePath and targetDir third-party-advisory