mhr3/unzip-stream · Security
unzip-stream allows Arbitrary File Write via artifact extraction
- GHSA ID
- GHSA-6jrj-vc65-c983
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CVSS v4
- 8.7 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Description
Impact
When using the Extract() method of unzip-stream, malicious zip files were able to write to paths they shouldn't be allowed to.
Patches
Fixed in 0.3.2
References
- https://snyk.io/research/zip-slip-vulnerability
- https://github.com/mhr3/unzip-stream/compare/v0.3.1...v0.3.2
Credits
Justin Taft from Google
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://github.com/mhr3/unzip-stream/security/advisories/GHSA-6jrj-vc65-c983 ↗
- https://github.com/mhr3/unzip-stream/commit/ab67989719abb4dcc774d02de266151905b8d45a ↗
- https://github.com/mhr3/unzip-stream/compare/v0.3.1...v0.3.2 ↗
- https://snyk.io/research/zip-slip-vulnerability ↗
- https://github.com/advisories/GHSA-6jrj-vc65-c983 ↗