Directory Traversal Affecting plexus-archiver package, versions <0:2.4.2-6.el7_9


Severity

Recommended
0.0
high
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.81% (82nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL7-PLEXUSARCHIVER-7978701
  • published14 Sept 2024
  • disclosed25 Jul 2023

Introduced: 25 Jul 2023

CVE-2023-37460  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-61  (opens in a new tab)

How to fix?

Upgrade RHEL:7 plexus-archiver to version 0:2.4.2-6.el7_9 or higher.
This issue was patched in RHSA-2023:6886.

NVD Description

Note: Versions mentioned in the description apply only to the upstream plexus-archiver package and not the plexus-archiver package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

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 Scores

version 3.1