Vulnerability record · CVE-2018-10860 · published 29 June 2018
CVE-2018-10860: Archive::Zip path traversal allows arbitrary file write on extraction
Canonical · Ubuntu Linux
The Perl Archive::Zip module fails to sanitize paths when extracting zip archives, allowing directory traversal entries to escape the intended extraction directory. Any application that extracts untrusted archives with this module can have files written or overwritten outside the target location.
Description
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.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Automated analysis
high priorityHigh CVSS (7.5) integrity impact with no authentication or interaction required and very high EPSS, though no confirmed in-the-wild exploitation is recorded.
What it is
The Perl Archive::Zip module fails to sanitize paths when extracting zip archives, allowing directory traversal entries to escape the intended extraction directory. Any application that extracts untrusted archives with this module can have files written or overwritten outside the target location.
Impact
An attacker who supplies a crafted archive can write or overwrite arbitrary files with the privileges of the Perl interpreter, potentially leading to code execution or configuration tampering depending on what files are reachable.
Attack surface
Reached remotely by delivering a malicious zip archive to a service or script that extracts it with Archive::Zip; the CVSS vector shows no authentication and no user interaction required, though real exposure depends on whether the application accepts attacker-supplied archives.
Exploitation
Not listed in CISA KEV and no public exploit references are tagged in the record, but EPSS is high at roughly 0.49 (98.8th percentile), indicating elevated likelihood of exploitation activity.
What to do
- Update perl-archive-zip to the fixed version from your distribution (Ubuntu USN-3703-1/3703-2, Debian DSA-4300) or upstream.
- Where patching is delayed, validate and reject archive entries containing absolute paths or '..' segments before extraction.
- Extract archives into a sandboxed directory with least-privilege service accounts and no write access to sensitive paths.
- Avoid extracting untrusted archives in processes running as root or with broad filesystem permissions.
Detection
- Monitor for file creation or modification outside expected extraction directories by processes using Perl Archive::Zip.
- Alert on archive entries containing '../' or absolute paths in extraction logs or pre-processing checks.
- Audit application code and dependencies for Archive::Zip extract calls handling user-supplied archives.
- Watch for unexpected writes to startup, cron, or web-accessible paths by Perl processes.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://www.securityfocus.com/bid/104580 | Third Party AdvisoryVDB Entry |
| https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10860 | Issue TrackingPatchThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2018/07/msg00032.html | Mailing ListThird Party Advisory |
| https://usn.ubuntu.com/3703-1/ | Third Party Advisory |
| https://usn.ubuntu.com/3703-2/ | Third Party Advisory |
| https://www.debian.org/security/2018/dsa-4300 | |
| http://www.securityfocus.com/bid/104580 | Third Party AdvisoryVDB Entry |
| https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10860 | Issue TrackingPatchThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2018/07/msg00032.html | Mailing ListThird Party Advisory |
| https://usn.ubuntu.com/3703-1/ | Third Party Advisory |
| https://usn.ubuntu.com/3703-2/ | Third Party Advisory |
| https://www.debian.org/security/2018/dsa-4300 |
Track CVE-2018-10860 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2018-10860), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.