Improper Input Validation Affecting org.apache.commons:commons-compress package, versions [1.22,1.24.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (24th 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 Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHECOMMONS-5901530
  • published14 Sept 2023
  • disclosed14 Sept 2023
  • creditYakov Shafranovich

Introduced: 14 Sep 2023

CVE-2023-42503  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade org.apache.commons:commons-compress to version 1.24.0 or higher.

Overview

org.apache.commons:commons-compress is an API for working with compression and archive formats.

Affected versions of this package are vulnerable to Improper Input Validation when parsing TAR files. An attacker can manipulate file modification times headers, leading to a denial of service issue via CPU consumption.

Note: This is only exploitable if applications are using the CompressorStreamFactory class (with auto-detection of file types), TarArchiveInputStream, and TarFile classes to parse TAR files.

CVSS Scores

version 3.1