Skip to content
NewA calmer, faster ZeroHour

Ubuntu fixes rubyzip flaws that write files outside a ZIP extract

Original title: USN-9364-1: rubyzip vulnerabilities

Ubuntu Security Notices ()
AI summary · x-ai/grok-4.7Summaries by Vani AI

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.

Key facts
  • 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.
Security assessment · AI, from the article

Impact: Arbitrary file write outside the ZIP destination directory

ProductAffected
Ubuntu rubyzip—
What to do
  1. 1.Apply Ubuntu's rubyzip security update before extracting untrusted ZIP archives.
Analyze CVE-2017-5946 with Vani AIImpact, affected versions, exploitation, mitigations and detection

Vulnerabilities mentioned

All
CVEVulnerabilityCVSSEPSSSignalsPublished
CVE-2017-5946
The Zip::File component in the rubyzip gem before 1.2.1 for Ruby has a directory traversal vulnerability
9.83%
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.85%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 Security Notices

ubuntu.com

Read the full article at Ubuntu Security Notices

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.