4.2.1
13 years ago
6 years ago
Known vulnerabilities in the decompress package. This does not include vulnerabilities belonging to this package’s dependencies.
Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.
Fix for free| Vulnerability | Vulnerable Version |
|---|---|
decompress is a package that can be used for extracting archives. Affected versions of this package are vulnerable to Directory Traversal via improper validation in the How to fix Directory Traversal? There is no fixed version for | * |
decompress is a package that can be used for extracting archives. Affected versions of this package are vulnerable to Symlink Attack via the How to fix Symlink Attack? There is no fixed version for | * |
decompress is a package that can be used for extracting archives. Affected versions of this package are vulnerable to Symlink Attack in the How to fix Symlink Attack? There is no fixed version for | * |
decompress is a package that can be used for extracting archives. Affected versions of this package are vulnerable to Directory Traversal and link following during archive extraction, where symlink and hardlink entries are created without checking their targets and the directory containment check relies on a string prefix comparison. An attacker can read or write files outside the target directory, and create setuid, setgid, or sticky-bit files when extraction runs as root, by supplying an archive containing out-of-target link entries, a path that shares a prefix with the output directory such as How to fix Directory Traversal? There is no fixed version for | * |
decompress is a package that can be used for extracting archives. Affected versions of this package are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) when extracting a ZIP archive containing two entries with the same path - the first being a symlink to an arbitrary target and the second being a regular file - the file content is written through the symlink to the target location outside the output directory. This is due to the microtask processing order that checks readlink for the second file before resolving symlink for the first file. An attacker can write arbitrary file on the host filesystem potentially leading to remote code execution by providing a specially crafted ZIP archive. Note: This bypasses all existing path traversal protections including How to fix Arbitrary File Write via Archive Extraction (Zip Slip)? There is no fixed version for | * |
decompress is a package that can be used for extracting archives. Affected versions of this package are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip). It is possible to bypass the security measures provided by decompress and conduct ZIP path traversal through symlinks. PoC
How to fix Arbitrary File Write via Archive Extraction (Zip Slip)? Upgrade | <4.2.1 |