CVE-2023-37460
Plexus Archiver vulnerable to Arbitrary File Creation in AbstractUnArchiver
Reported by github_m · Published July 25, 2023
plexus-archiver is fixed in 4.8.0 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.codehaus.plexus:plexus-archiver | Maven Central | 4.8.0 |
| javapackages-bootstrap | Amazon Linux | 1.5.0^20220105.git9f283b7-3.amzn2023.0.4 |
| hadoop-fips-3.3.6 | Chainguard | 3.3.6-r21 |
| plexus-archiver | Amazon Linux | 4.2.7-4.amzn2023.0.1 |
| plexus-archiver | codehaus-plexus | 4.8.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| codehaus-plexus | plexus-archiver | < 4.8.0 |
| amazon:2023 | javapackages-bootstrap | 0 |
| chainguard | hadoop-fips-3.3.6 | 0 |
| amazon:2023 | plexus-archiver | 0 |
| Maven | org.codehaus.plexus:plexus-archiver | 0 |
| amazon:2023 | plexus-archiver-javadoc | 0 |
| codehaus-plexus | plexus-archiver | 0 |
| codehaus-plexus | plexus-archiver | 0 |
Timeline
- Jul 25, 2023 CVE Published
- Jul 26, 2023 EPSS Score (30 in total, the first dated here)
- Aug 19, 2025 PoC Published
- Feb 10, 2026 Security Advisory (2 in total, the first dated here)
- Aug 7, 2026 Coalition ESS Score
- Nov 21, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-37460
vulnetix vdb fixes CVE-2023-37460
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-37460/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/codehaus-plexus/plexus-archiver/security/advisories/GHSA-wh3p-fphp-9h2m x_refsource_CONFIRM
- https://github.com/codehaus-plexus/plexus-archiver/commit/54759839fbdf85caf8442076f001d5fd64e0dcb2 x_refsource_MISC
- https://github.com/codehaus-plexus/plexus-archiver/releases/tag/plexus-archiver-4.8.0 x_refsource_MISC
- codehaus-plexus__plexus-archiver_CVE-2023-37460_4-7-1 exploit
- https://nvd.nist.gov/vuln/detail/CVE-2023-37460 advisory