CVE-2023-37460: Arbitrary File Creation in AbstractUnArchiver

Summary

25/07/2023
Yes i
High
8.1

CVE-2023-37460: Arbitrary File Creation in AbstractUnArchiver. Affects org.codehaus.plexus:plexus-archiver versions < 4.8.0. Fixed in 4.8.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The package under scrutiny is org.codehaus.plexus:plexus-archiver, which is a component of the Maven ecosystem. It is responsible for archiving and extracting files in various formats. The vulnerability in question arises when using the AbstractUnArchiver class for extracting an archive. This vulnerability allows for arbitrary file creation and potential remote code execution.

Vulnerability Detail

The vulnerability stems from the resolveFile() function in AbstractUnArchiver. 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 returns the symlink's source instead of its target. This allows the file extraction process to write the entry's content to the symlink's target, effectively creating the destination file and potentially leading to remote code execution. This vulnerability poses a high risk to anyone using plexus archiver to extract untrusted archives.

How To Fix

Minimum fixed version

4.8.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update to the fixed version of the package.

Conclusion

The vulnerability in org.codehaus.plexus:plexus-archiver allows for arbitrary file creation and potential remote code execution. It is crucial to update to version 4.8.0 or later to mitigate this issue. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.codehaus.plexus:plexus-archiver →

Share this vulnerability

FAQ

The vulnerability allows for arbitrary file creation and potentially enables remote code execution. An attacker could exploit this to create files with malicious content and execute arbitrary code on the victim's system.

Anyone using plexus archiver to extract untrusted archives is vulnerable to this issue.

There are currently no known exploits for this vulnerability.

Input validation alone is not sufficient to mitigate this vulnerability. It is essential to update to the fixed version of the package.

Yes, the CVSS score for this vulnerability is 8.1 (High).

Related vulnerabilities

Recent vulnerabilities recorded for org.codehaus.plexus:plexus-archiver.

How To Fix

Minimum fixed version

4.8.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback