CVE-2023-37460
plexus-archiver: Arbitrary File Creation in AbstractUnArchiver
Sévérité par source
Le label propre à Trivy est CRITICAL. Critique selon NVD, Azure Linux, CBL-Mariner. Plus basse selon GHSA (élevée), Red Hat (élevée), Amazon (élevée), Oracle (élevée).
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.
Paquets affectés et versions corrigées
| Source | Paquet | Corrigé en |
|---|---|---|
| Azure Linux 3.0 | javapackages-bootstrap | 0:1.5.0-4.azl3 |
| CBL-Mariner 2.0 | javapackages-bootstrap | 0:1.5.0-4.cm2 |
| amazon linux 2023 | javapackages-bootstrap, plexus-archiver, plexus-archiver-javadoc | 1.5.0^20220105.git9f283b7-3.amzn2023.0.4 et 1 autres |
| chainguard | hadoop-fips-3.3.6 | 3.3.6-r21 |
| maven::GitHub Security Advisory Maven | org.codehaus.plexus:plexus-archiver | 4.8.0 |
| Oracle Linux 7 | plexus-archiver, plexus-archiver-javadoc | 2.4.2-6.el7_9 |
| rapidfort amazon linux 2023 | plexus-archiver, plexus-archiver-javadoc | 4.2.7-4.amzn2023.0.1 |
Afficher les 11 entrées de 7 sources
| Source | Paquet | Corrigé en |
|---|---|---|
| Azure Linux 3.0 | javapackages-bootstrap | 0:1.5.0-4.azl3 |
| CBL-Mariner 2.0 | javapackages-bootstrap | 0:1.5.0-4.cm2 |
| amazon linux 2023 | javapackages-bootstrap | 1.5.0^20220105.git9f283b7-3.amzn2023.0.4 |
| amazon linux 2023 | plexus-archiver | 4.2.7-4.amzn2023.0.1 |
| amazon linux 2023 | plexus-archiver-javadoc | 4.2.7-4.amzn2023.0.1 |
| chainguard | hadoop-fips-3.3.6 | 3.3.6-r21 |
| maven::GitHub Security Advisory Maven | org.codehaus.plexus:plexus-archiver | 4.8.0 |
| Oracle Linux 7 | plexus-archiver | 2.4.2-6.el7_9 |
| Oracle Linux 7 | plexus-archiver-javadoc | 2.4.2-6.el7_9 |
| rapidfort amazon linux 2023 | plexus-archiver | 4.2.7-4.amzn2023.0.1 |
| rapidfort amazon linux 2023 | plexus-archiver-javadoc | 4.2.7-4.amzn2023.0.1 |
Références
- https://access.redhat.com/security/cve/CVE-2023-37460
- https://github.com/codehaus-plexus/plexus-archiver
- https://github.com/codehaus-plexus/plexus-archiver/commit/54759839fbdf85caf8442076f001d5fd64e0dcb2
- https://github.com/codehaus-plexus/plexus-archiver/releases/tag/plexus-archiver-4.8.0
- https://github.com/codehaus-plexus/plexus-archiver/security/advisories/GHSA-wh3p-fphp-9h2m
- https://linux.oracle.com/cve/CVE-2023-37460.html
- https://linux.oracle.com/errata/ELSA-2023-6886.html
- https://nvd.nist.gov/vuln/detail/CVE-2023-37460