# Ubuntu addresses rubyzip path traversal and symlink vulnerabilities

> **Key takeaway:** Security updates for the ruby-zip package mitigate arbitrary file write risks caused by improper path validation and symlink handling.

**Published:** 2026-12-01T21:12:30+00:00 
**Source:** Ubuntu Security & Release Notices 
**Category:** distro-news 
**Canonical URL:** https://fosswire.org/news/ubuntu-addresses-rubyzip-path-traversal-and-symlink-vulnerab 

## Summary
Ubuntu has released security updates for the ruby-zip package to address two significant vulnerabilities that could lead to arbitrary file writes. The flaws involve improper validation of file paths and the mishandling of symbolic links and absolute paths within ZIP archives.

These vulnerabilities affect users and automated systems running the ruby-zip Ruby module on Ubuntu 16.04 LTS. An attacker could exploit these issues by providing a specially crafted ZIP archive to overwrite files outside the intended destination directory.

## Vulnerability details and patch information
- **Path Traversal (CVE-2017-5946):** The rubyzip module failed to properly validate file paths, allowing attackers to use crafted archives to write files outside the target directory.
- **Symlink and Absolute Path Handling (CVE-2018-1000544):** The library did not correctly manage symbolic links or absolute paths, enabling unauthorized file overwrites during extraction.
- **Affected Package:** The security fix is applied to the ruby-zip package, specifically version 1.1.7-1ubuntu0.1~esm1 for Ubuntu 16.04 LTS.
- **Remediation:** Users can resolve these security exposures by performing a standard system update to reach the patched package version.

## Why it matters
This update is critical for developers and system administrators using Ruby-based automation or applications that process untrusted ZIP files. Because these vulnerabilities allow for directory traversal, they pose a significant risk to system integrity if the extraction process runs with elevated privileges.