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


0.0
medium

Snyk CVSS

    Attack Complexity High
    Availability High

    Threat Intelligence

    EPSS 0.05% (17th percentile)
Expand this section
NVD
5.5 medium

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 ID SNYK-JAVA-ORGAPACHECOMMONS-5901530
  • published 14 Sep 2023
  • disclosed 14 Sep 2023
  • credit Yakov Shafranovich

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.