Ubuntu fixes rubyzip flaws that write files outside a ZIP extract
Original title: USN-9364-1: rubyzip vulnerabilities
Crafted archives can abuse unchecked paths, symlinks, or absolute paths so extraction writes outside the destination directory.
Ubuntu USN-9364-1 covers two rubyzip issues that can write arbitrary files outside the extraction directory. CVE-2017-5946 is insufficient validation of file paths in ZIP archives. CVE-2018-1000544 is improper handling of symbolic links and absolute paths. Both require a user or automated system to extract a specially crafted archive. No affected or fixed versions appear in the snippet.
Unconfirmed: Affected and fixed rubyzip versions are not stated in the snippet, and exploitation is not discussed.
- CVE-2017-5946 concerns file paths inside ZIP archives.
- CVE-2018-1000544 concerns symbolic links and absolute paths.
- Extraction by a user or automated system is required.
- The snippet does not name package versions or a fix.
Impact: Arbitrary file write outside the ZIP destination directory
| Product | Affected |
|---|---|
| Ubuntu rubyzip | — |
- 1.Apply Ubuntu's rubyzip security update before extracting untrusted ZIP archives.
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2017-5946 | The Zip::File component in the rubyzip gem before 1.2.1 for Ruby has a directory traversal vulnerability | 9.8 | 3% | ||
| CVE-2018-1000544 | rubyzip gem rubyzip version 1.2.1 and earlier contains a Directory Traversal vulnerability in Zip::File component that can result in write arbitrary files to… | 9.8 | 5% | PoC |
From the original article
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.
ubuntu.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.