Cloudanix VulnDB

CVE-2018-10860

High · 7.5

CVSS

7.5

EPSS

43.4%

Published

Jun 29, 2018

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A zip file processing flaw lets attackers overwrite important files on systems that handle untrusted archives, which can lead to data corruption or system compromise.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Data Tampering
Component
Library
Class
Path Traversal
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Unsanitized path handling during zip extraction allows crafted archives to write or overwrite files outside the intended extraction directory via directory traversal sequences.

Why it matters to the business

Attackers can corrupt system files, plant malicious code, or disrupt operations on any system that processes untrusted zip archives with this library, increasing breach risk and remediation costs.

How an attack unfolds

An attacker crafts a zip archive containing files with traversal sequences such as ../../target/path, then supplies the archive to any application or user that extracts it using the vulnerable perl-archive-zip module, resulting in arbitrary file writes in the context of the extracting process.

How to fix it

Upgrade perl-archive-zip to a version that enforces path sanitization during extraction; if no patched package is available, replace the library or implement wrapper filtering that rejects any archive entry containing .. or absolute paths before extraction.

How to confirm the fix worked

Test extraction of a crafted zip containing traversal sequences in an isolated environment and confirm that files are not written outside the target directory; review package version against upstream security advisories.

Typical attack path

  1. Identify or compromise a target that uses perl-archive-zip to extract archives
  2. Craft a malicious zip containing traversal paths to desired write locations
  3. Deliver the archive via email, web upload, or supply chain
  4. Trigger extraction on the target system
  5. Achieve file overwrite or code execution via planted artifacts

How to detect it

Search application and system logs for extraction operations involving zip archives with path entries containing .. sequences; inspect file system timestamps for unexpected writes during archive processing; review process execution history around zip handling utilities.

  • ../
  • ..\
  • Archive::Zip extraction with traversal paths

What your security team should do

  • Prioritize patching or replacing perl-archive-zip across all affected systems due to high EPSS and public exploitability
  • Scan codebases and dependency trees for direct or transitive use of the library
  • Implement archive extraction in sandboxed environments or with strict path validation
  • Monitor for new fixed versions from distribution maintainers

The record

perl-archive-zip is vulnerable to a directory traversal in Archive::Zip. It was found that the Archive::Zip module did not properly sanitize paths while extracting zip files. An attacker able to provide a specially crafted archive for processing could use this flaw to write or overwrite arbitrary files in the context of the perl interpreter.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 libarchive-zip-perl 0 1.62-1
Debian:12 libarchive-zip-perl 0 1.62-1
Debian:13 libarchive-zip-perl 0 1.62-1
Debian:8 libarchive-zip-perl 0 1.39-1+deb8u1
Debian:9 libarchive-zip-perl 0 1.59-1+deb9u1
Mageia:6 perl-Archive-Zip 0 1.600.0-1.mga6
SUSE:Linux Enterprise Desktop 12 SP3 perl-Archive-Zip 0 1.34-3.3.1
SUSE:Linux Enterprise Module for Basesystem 15 perl-Archive-Zip 0 1.60-3.3.1
SUSE:Linux Enterprise Server 11 SP4 perl-Archive-Zip 0 1.24-4.3.1
SUSE:Linux Enterprise Server 12 SP3 perl-Archive-Zip 0 1.34-3.3.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 perl-Archive-Zip 0 1.24-4.3.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 perl-Archive-Zip 0 1.34-3.3.1
Ubuntu:14.04:LTS libarchive-zip-perl 0 1.30-7ubuntu0.1
Ubuntu:16.04:LTS libarchive-zip-perl 0 1.56-2ubuntu0.1
Ubuntu:18.04:LTS libarchive-zip-perl 0 1.60-1ubuntu0.1

Related vulnerabilities