USN-9364-1: rubyzip vulnerabilities
It was discovered that rubyzip did not properly validate file paths in ZIP archives. If a user or automated system were tricked into extracting a specially crafted ZIP archive, an attacker could possibly use this issue to write arbitrary files outside the destination directory. (CVE-2017-5946) It was discovered that rubyzip did not properly handle symbolic links and absolute paths in ZIP archives. If a user or automated system were tricked into extracting a specially crafted ZIP archive, an attacker could possibly use this issue to write arbitrary files outside the destination directory. (CVE-2018-1000544)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/ruby-zipto a version that resolves this vulnerability.Fixed in 1.1.7-1ubuntu0.1~esm1
Event History
Frequently Asked Questions
Who is exposed to these issues?
Users and automated systems that extract ZIP archives with rubyzip are exposed when they process a specially crafted archive. Systems that do not extract untrusted ZIP files are not described as affected by the available information.
What does an attacker need to exploit the vulnerabilities?
An attacker needs to cause a user or automated system to extract a specially crafted ZIP archive. The archive can contain unsafe file paths, symbolic links, or absolute paths that lead to writes outside the intended extraction directory.
What is the potential impact of successful exploitation?
Successful exploitation could allow arbitrary files to be written outside the destination directory used for ZIP extraction.