Skip to content
OpenAdvisories
Medium · 5.5 Public exploit CVE-2018-1002200 EUVD-2022-4128GHSA-hcxq-x77q-3469SNYK-JAVA-ORGCODEHAUSPLEXUS-31680

Improper Limitation of a Pathname to a Restricted Directory in plexus-archiver

Published Jul 25, 2018 · Updated Aug 5, 2024 · Assigned by snyk

Description

plexus-archiver before 3.6.0 is vulnerable to directory traversal, allowing attackers to write to arbitrary files via a ../ (dot dot slash) in an archive entry that is mishandled during extraction. This vulnerability is also known as 'Zip-Slip'.

Affected products

VendorProductAffectedFixed
Codehaus plexus-archiver unspecified – < 3.6.0 3.6.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 plexus-archiver 3.6.0-1 —
Debian 13 plexus-archiver 3.6.0-1 —
Debian 12 plexus-archiver 3.6.0-1 —
Debian 9 plexus-archiver 2.2-1+deb9u1 DSA-4227-1
Debian 8 plexus-archiver 1.2-1+deb8u1 DSA-4227-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS plexus-archiver 2.2-1+deb9u1build0.16.04.1 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS plexus-archiver 3.5-2ubuntu0.1~esm1 USN-4832-1
ReleasePackageFixed inAdvisory
RHEL 7 plexus-archiver +1 2.4.2-5.el7_5 RHSA-2018:1836
RHEL 3 rh-maven33-plexus-archiver +1 2.4.2-5.1.el6 RHSA-2018:1837
RHEL 3 rh-maven35-plexus-archiver +1 3.4-4.1.el7 RHSA-2018:1837

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 plexus-archiver +1 2.4.2-5.amzn2 ALAS2-2018-1043

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 plexus-archiver +1 2.4.2-5.el7_5 ELSA-2018-1836

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.codehaus.plexus:plexus-archiver < 3.6.0 3.6.0 GHSA-hcxq-x77q-3469

Advisories 7

References