CVE-2023-37460: codehaus-plexus plexus-archiver Path Traversal
Vulnerability summary
CVE-2023-37460 is a critical (CVSS 9.8) Path Traversal vulnerability in codehaus-plexus plexus-archiver. EPSS estimates a 2.48% chance of exploitation in the next 30 days, higher than 84.3% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 25-07-2023PublishedVulnerability first disclosed.
- 03-10-2024Last modifiedVulnerability information updated.
Description
Plexis Archiver is a collection of Plexus components to create archives or extract archives to a directory with a unified `Archiver`/`UnArchiver` API. Prior to version 4.8.0, using AbstractUnArchiver for extracting an archive might lead to an arbitrary file creation and possibly remote code execution. When extracting an archive with an entry that already exists in the destination directory as a symbolic link whose target does not exist - the `resolveFile()` function will return the symlink's source instead of its target, which will pass the verification that ensures the file will not be extracted outside of the destination directory. Later `Files.newOutputStream()`, that follows symlinks by default, will actually write the entry's content to the symlink's target. Whoever uses plexus archiver to extract an untrusted archive is vulnerable to an arbitrary file creation and possibly remote code execution. Version 4.8.0 contains a patch for this issue.
CVSS metrics
6 scores · 6 sources · 1 version- CVE.orgCNA8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · Red hatEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · MavenEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
2.48%
Chance of exploitation in the next 30 days
Percentile
84%
Versus all other CVEs
30-day change
0.00 pp
From 2.48% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundPlexus Archiver
Maturity: poc
Weaknesses
CWE · root cause- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- CWE-61UNIX Symbolic Link (Symlink) FollowingThe product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.
Affected systems
Suse87 products
- maven-archiver&distro=SUSE Enterprise Storage 7.1< 3.6.1-150200.3.7.3
- maven-archiver&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS< 3.6.1-150200.3.7.3
- maven-archiver&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS< 3.6.1-150200.3.7.3
- maven-archiver&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 3.6.1-150200.3.7.3
- maven-archiver&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 3.6.1-150200.3.7.3
Opensuse15 products
- maven-archiver&distro=openSUSE Leap 15.5< 3.6.1-150200.3.7.3
- maven-assembly-plugin&distro=openSUSE Leap 15.5< 3.6.0-150200.3.7.2
- maven-common-artifact-filters&distro=openSUSE Leap 15.5< 3.3.2-150200.3.7.3
- maven-compiler-plugin-bootstrap&distro=openSUSE Leap 15.5< 3.11.0-150200.3.7.1
- maven-compiler-plugin&distro=openSUSE Leap 15.5< 3.11.0-150200.3.7.1
Chainguard3 products
- hadoop-fips-3.3.6< 3.3.6-r15 | < 3.3.6-r21
- hadoop-fips-3.4.2All versions (No fix recorded)
- hadoop-fips-3.5All versions (No fix recorded)
Redhat2 products
- plexus-archiver< 0:2.4.2-6.el7_9
- plexus-archiver-javadoc< 0:2.4.2-6.el7_9
Codehaus-plexus1 product
- plexus-archiver< 4.8.0
Org.codehaus.plexus1 product
- plexus-archiver< 4.8.0
Ubuntu1 product
- plexus-archiverAll versions (No fix recorded)
7 vendors · 110 products
References
17 links- github.com/codehaus-plexus/plexus-archiver/security/advisories/GHSA-wh3p-fphp-9h2mX Refsource CONFIRMARTICLEREPORTAdvisoryWEBExploitVendor Advisory
- github.com/codehaus-plexus/plexus-archiver/commit/54759839fbdf85caf8442076f001d5fd64e0dcb2X Refsource MISCREPORTFIXWEBPatch
- github.com/codehaus-plexus/plexus-archiver/releases/tag/plexus-archiver-4.8.0X Refsource MISCREPORTWEBRelease Notes