Vulnerabilities / CVE-2023-37460

critical

CVE-2023-37460

plexus-archiver: Arbitrary File Creation in AbstractUnArchiver

Published Modified CWE 22, 61
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Azure Linux, CBL-Mariner. Rated lower by GHSA (high), Red Hat (high), Amazon (high), Oracle (high).

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.

Affected packages and fixed versions

SourcePackageFixed in
Azure Linux 3.0javapackages-bootstrap0:1.5.0-4.azl3
CBL-Mariner 2.0javapackages-bootstrap0:1.5.0-4.cm2
amazon linux 2023javapackages-bootstrap, plexus-archiver, plexus-archiver-javadoc1.5.0^20220105.git9f283b7-3.amzn2023.0.4 and 1 more
chainguardhadoop-fips-3.3.63.3.6-r21
maven::GitHub Security Advisory Mavenorg.codehaus.plexus:plexus-archiver4.8.0
Oracle Linux 7plexus-archiver, plexus-archiver-javadoc2.4.2-6.el7_9
rapidfort amazon linux 2023plexus-archiver, plexus-archiver-javadoc4.2.7-4.amzn2023.0.1
Show all 11 entries from 7 sources
SourcePackageFixed in
Azure Linux 3.0javapackages-bootstrap0:1.5.0-4.azl3
CBL-Mariner 2.0javapackages-bootstrap0:1.5.0-4.cm2
amazon linux 2023javapackages-bootstrap1.5.0^20220105.git9f283b7-3.amzn2023.0.4
amazon linux 2023plexus-archiver4.2.7-4.amzn2023.0.1
amazon linux 2023plexus-archiver-javadoc4.2.7-4.amzn2023.0.1
chainguardhadoop-fips-3.3.63.3.6-r21
maven::GitHub Security Advisory Mavenorg.codehaus.plexus:plexus-archiver4.8.0
Oracle Linux 7plexus-archiver2.4.2-6.el7_9
Oracle Linux 7plexus-archiver-javadoc2.4.2-6.el7_9
rapidfort amazon linux 2023plexus-archiver4.2.7-4.amzn2023.0.1
rapidfort amazon linux 2023plexus-archiver-javadoc4.2.7-4.amzn2023.0.1

References

All 10 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.