CVE-2023-37460

Plexus Archiver vulnerable to Arbitrary File Creation in AbstractUnArchiver

Published Jul 25, 2023 CVSS 3.1 · 8.1 High EPSS 2.5% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-wh3p-fphp-9h2m Arbitrary File Creation in AbstractUnArchiver
History
Type Values Removed Values Added
Metrics epss

{'score': 0.2996}

epss

{'score': 0.30448}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 3, 2024, 7:09 PM
Reserved
Jul 6, 2023, 1:01 PM
Status
Modified
Published
Jul 25, 2023, 8:15 PM
Modified
Jun 17, 2026, 6:08 AM
Severity
Important
Public date
Jul 25, 2023, 12:00 AM