WaratekVRT Sign in

CVE-2023-42503 Apache Commons Compress

Affected softwareApache Commons Compress
Severity5.5 Medium CVSS 3.1
Fixed in1.24.0
WeaknessImproper input validation (CWE-20)
Published14 Sep 2023
Updated17 Jun 2026

Description

Improper Input Validation, Uncontrolled Resource Consumption vulnerability in Apache Commons Compress in TAR parsing.This issue affects Apache Commons Compress: from 1.22 before 1.24.0. Users are recommended to upgrade to version 1.24.0, which fixes the issue. A third party can create a malformed TAR file by manipulating file modification times headers, which when parsed with Apache Commons Compress, will cause a denial of service issue via CPU consumption. In version 1.22 of Apache Commons Compress, support was added for file modification times with higher precision (issue # COMPRESS-612 [1]). The format for the PAX extended headers carrying this data consists of two numbers separated by a period [2], indicating seconds and subsecond precision (for example “1647221103.5998539”). The impacted fields are “atime”, “ctime”, “mtime” and “LIBARCHIVE.creationtime”. No input validation is performed prior to the parsing of header values. Parsing of these numbers uses the BigDecimal [3] class from the JDK which has a publicly known algorithmic complexity issue when doing operations on large numbers, causing denial of service (see issue # JDK-6560193 [4]). A third party can manipulate file time headers in a TAR file by placing a number with a very long fraction (300,000 digits) or a number with exponent notation (such as “9e9999999”) within a file modification time header, and the parsing of files with these headers will take hours instead of seconds, leading to a denial of service via exhaustion of CPU resources. This issue is similar to CVE-2012-2098 [5]. [1]: https://issues.apache.org/jira/browse/COMPRESS-612 [2]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/pax.html#tag_20_92_13_05 [3]: https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html [4]: https://bugs.openjdk.org/browse/JDK-6560193 [5]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2098 Only applications using CompressorStreamFactory class (with auto-detection of file types), TarArchiveInputStream and TarFile classes to parse TAR files are impacted. Since this code was introduced in v1.22, only that version and later versions are impacted.

CWE-400 · Uncontrolled resource consumption

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 3 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 0.60% chance in 30 days

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists: apache/commons-compress aae38bf.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all
Finding This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update October 2024 ↗ CPU 2024-Q4 Oracle Enterprise Manager / Load Testing for Web Apps (Apache Commons Compress) (13.3.0.1)
Oracle Critical Patch Update July 2024 ↗ CPU 2024-Q3 Oracle PeopleSoft / Webserver (Apache Commons Compress) (8.59, 8.60, 8.61)
Oracle Critical Patch Update April 2024 ↗ CPU 2024-Q2 Oracle Enterprise Manager / Enterprise Manager Install (Apache Commons Compress) (13.5.0.0)
Oracle Financial Services Applications / Web UI (Apache Commons Compress) (2.7.0.0.0)
Oracle Health Sciences Applications / Core (Apache Commons Compress) (9.1.0.53, 9.2.0.53)
Oracle Supply Chain / Install (Apache Tika) (6.5.2, 6.5.3)
Oracle Critical Patch Update January 2024 ↗ CPU 2024-Q1 Oracle Communications Applications / PSR Designer (Apache Commons Compress) (7.4.2.8.0)
Oracle Communications Applications / Security (Apache Commons Compress) (8.1.0.24.0)
Oracle Communications Applications / Security Component (Apache Commons Compress) (7.4.0-7.4.2, 7.5.0, 7.5.1)
Oracle Construction and Engineering / Platform (Apache Commons Compress) (19.12.0-19.12.16, 20.12.0-20.12.16, 21.12.0-21.12.17, 22.12.0-22.12.11)
Oracle Construction and Engineering / Web (Apache Commons Compress) (19.12.0-19.12.22, 20.12.0-20.12.20, 21.12.0-21.12.17, 22.12.0-22.12.10)
Oracle Essbase / Essbase Web Platform (Apache Commons Compress) (21.5.3.0.0)
Oracle Financial Services Applications / Application (Apache Commons Compress) (8.0.8.1, 8.1.1.1, 8.1.2.5, 8.1.2.6)
Oracle Financial Services Applications / Infrastructure (Apache Commons Compress) (8.0.7, 8.0.8, 8.0.9, 8.1.0, 8.1.1, 8.1.2)
Oracle Fusion Middleware / Centralized Thirdparty Jars (Apache Commons Compress) (12.2.1.4.0, 14.1.1.0.0)
Oracle Fusion Middleware / Security Framework (Apache Commons Compress) (12.2.1.4.0)
Oracle Utilities Applications / NMS Monitor (Apache Commons Compress) (2.6.0.1)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Communications Applications PSR Designer (Apache Commons Compress) 7.4.2.8.0 7.4.2.8.0
Oracle Communications Applications Security (Apache Commons Compress) 8.1.0.24.0 8.1.0.24.0
Oracle Communications Applications Security Component (Apache Commons Compress) 7.4.0-7.4.2, 7.5.0, 7.5.1 7.5.0 · 7.5.1
Oracle Construction and Engineering Platform (Apache Commons Compress) 19.12.0-19.12.16, 20.12.0-20.12.16, 21.12.0-21.12.17, 22.12.0-22.12.11
Oracle Construction and Engineering Web (Apache Commons Compress) 19.12.0-19.12.22, 20.12.0-20.12.20, 21.12.0-21.12.17, 22.12.0-22.12.10
Oracle Enterprise Manager Enterprise Manager Install (Apache Commons Compress) 13.5.0.0 13.5.0.0
Oracle Enterprise Manager Load Testing for Web Apps (Apache Commons Compress) 13.3.0.1 13.3.0.1
Oracle Essbase Essbase Web Platform (Apache Commons Compress) 21.5.3.0.0 21.5.3.0.0
Oracle Financial Services Applications Application (Apache Commons Compress) 8.0.8.1, 8.1.1.1, 8.1.2.5, 8.1.2.6 8.0.8.1 · 8.1.1.1 · 8.1.2.5 · 8.1.2.6
Oracle Financial Services Applications Infrastructure (Apache Commons Compress) 8.0.7, 8.0.8, 8.0.9, 8.1.0, 8.1.1, 8.1.2 8.0.7 · 8.0.8 · 8.0.9 · 8.1.0 · 8.1.1 · 8.1.2
Oracle Financial Services Applications Web UI (Apache Commons Compress) 2.7.0.0.0 2.7.0.0.0
Oracle Fusion Middleware Centralized Thirdparty Jars (Apache Commons Compress) 12.2.1.4.0, 14.1.1.0.0 12.2.1.4.0 · 14.1.1.0.0
Oracle Fusion Middleware Security Framework (Apache Commons Compress) 12.2.1.4.0 12.2.1.4.0
Oracle Health Sciences Applications Core (Apache Commons Compress) 9.1.0.53, 9.2.0.53 9.1.0.53 · 9.2.0.53
Oracle PeopleSoft Webserver (Apache Commons Compress) 8.59, 8.60, 8.61 8.59 · 8.60 · 8.61
Oracle Supply Chain Install (Apache Tika) 6.5.2, 6.5.3 6.5.2 · 6.5.3
Oracle Utilities Applications NMS Monitor (Apache Commons Compress) 2.6.0.1 2.6.0.1

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.commons:commons-compress 1.22 1.24.0 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
nvd apache commons compress generic ≥ 1.22 and < 1.24.0
osv org.apache.commons commons-compress generic ≥ 1.22 and < 1.24.0

References

URLTags
https://github.com/apache/commons-compress/commit/aae38bfb820159ae7a0b792e779571f6a46b3889 WEB
https://github.com/apache/commons-compress PACKAGE
https://lists.apache.org/thread/5xwcyr600mn074vgxq92tjssrchmc93c WEB
https://security.netapp.com/advisory/ntap-20231020-0003 WEB
https://security.netapp.com/advisory/ntap-20231020-0003/ Third Party Advisory

Timeline

Published2023-09-14By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.