The Zip::File component in the rubyzip gem before 1.2.1 for Ruby has a directory traversal vulnerability. If a site allows uploading of .zip files, an attacker can upload a malicious file that uses "../" pathname substrings to write arbitrary files to the filesystem.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://github.com/rubyzip/rubyzip/releases | third party advisory |
http://www.securityfocus.com/bid/96445 | vdb entry third party advisory |
https://github.com/rubyzip/rubyzip/issues/315 | third party advisory |
http://www.debian.org/security/2017/dsa-3801 | third party advisory vendor advisory |