Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › News › Vulnerabilities

Advisory Critical CVE Analysis

Ubuntu USN-9364-1 Addresses rubyzip Flaws That Can Let Attackers Write Files Outside Target Directories

According to Ubuntu's USN-9364-1 advisory, two rubyzip vulnerabilities, CVE-2017-5946 and CVE-2018-1000544, can allow files to be written outside the intended directory when a malicious ZIP archive is processed. Ubuntu says updating to the newest package versions fixes the problem.

Vulnerabilities

Key points

  • Ubuntu's USN-9364-1 advisory covers two rubyzip flaws, CVE-2017-5946 and CVE-2018-1000544.
  • The flaws can allow files to be written outside the intended directory via a malicious ZIP archive.
  • Ubuntu recommends updating to the latest package versions; no workaround is given besides patching.
  • The advisory reports no known in-the-wild exploitation and no public proof of concept.

Ubuntu has published security advisory USN-9364-1 covering two vulnerabilities in rubyzip, a Ruby module used for working with ZIP files. The flaws, tracked as CVE-2017-5946 and CVE-2018-1000544, stem from file paths inside ZIP archives not being validated correctly. According to the advisory, an attacker could use a malicious archive to write files outside the intended directory, which could lead to unauthorized changes on affected systems.

The advisory says systems using rubyzip, including Ruby-based applications that process ZIP files, may be affected. Ubuntu recommends installing the latest package versions, which contain the patches. The specific fixed versions are not stated in the source excerpt, so administrators should check the original advisory for them. The advisory also does not mention a workaround other than applying the update, and it does not indicate that the flaws have been exploited in the wild or that public exploit code exists. It also does not say whether the issues are confirmed exploitable or only suspected. The report describes the impact as moderate to high, depending on system configuration.

For full details, see the original Ubuntu USN-9364-1 advisory.

What to do

  1. Identify systems and Ruby applications that use the rubyzip library for ZIP processing.
  2. Apply the updated rubyzip packages from USN-9364-1 as soon as possible, checking the advisory for the specific fixed versions.
  3. Review the original Ubuntu advisory for full details on affected and fixed package versions.

Our article, written with AI assistance from the facts of the original report and the official vulnerability data below. Read the original for full details.

Original report

Ubuntu USNubuntu.com

“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…

Vulnerabilities mentioned