CVE-2023-42503
published 2023-09-14CVE-2023-42503: Improper Input Validation, Uncontrolled Resource Consumption vulnerability in Apache Commons Compress in TAR parsing.This issue affects Apache Commons…
PriorityP419medium5.5CVSS 3.1
AVLACLPRNUIRSUCNINAH
EPSS
0.49%
38.9th percentile
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 type
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apache | commons_compress | >= 1.22 < 1.24.0 | 1.24.0 |
| apache | tika | — | — |
| debian | libcommons-compress-java | < libcommons-compress-java 1.24.0-1 (forky) | libcommons-compress-java 1.24.0-1 (forky) |
| msrc | azl3_javapackages-bootstrap_1.14.0-3_on_azure_linux_3.0 | — | — |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
ghsa5.0MEDIUM
osv5.0MEDIUM
vendor_apache5.5MEDIUM
vendor_msrc5.5MEDIUM
vendor_oracle5.5MEDIUM
vendor_debian5.0MEDIUM
vendor_redhat5.0MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Oracle
Oracle Oracle PeopleSoft Risk Matrix: Webserver (Apache Commons Compress) — CVE-2023-42503
vendor_oracle·2024-07-15·CVSS 5.5
CVE-2023-42503 [MEDIUM] Oracle Oracle PeopleSoft Risk Matrix: Webserver (Apache Commons Compress) — CVE-2023-42503
Oracle Oracle PeopleSoft Risk Matrix: Webserver (Apache Commons Compress) vulnerability
CVE: CVE-2023-42503
CVSS: 5.5
Protocol: None
Remote exploit: No
Affected versions: Local
Advisory: cpujul2024 (JUL 2024)
Oracle
Oracle Oracle Enterprise Manager Risk Matrix: Enterprise Manager Install (Apache Commons Compress) — CVE-2023-42503
vendor_oracle·2024-04-15·CVSS 5.5
CVE-2023-42503 [MEDIUM] Oracle Oracle Enterprise Manager Risk Matrix: Enterprise Manager Install (Apache Commons Compress) — CVE-2023-42503
Oracle Oracle Enterprise Manager Risk Matrix: Enterprise Manager Install (Apache Commons Compress) vulnerability
CVE: CVE-2023-42503
CVSS: 5.5
Protocol: None
Remote exploit: No
Affected versions: Local
Advisory: cpuapr2024 (APR 2024)
Oracle
Oracle Oracle Essbase Risk Matrix: Essbase Web Platform (Apache Commons Compress) — CVE-2023-42503
vendor_oracle·2024-01-15·CVSS 5.5
CVE-2023-42503 [MEDIUM] Oracle Oracle Essbase Risk Matrix: Essbase Web Platform (Apache Commons Compress) — CVE-2023-42503
Oracle Oracle Essbase Risk Matrix: Essbase Web Platform (Apache Commons Compress) vulnerability
CVE: CVE-2023-42503
CVSS: 5.5
Protocol: None
Remote exploit: No
Affected versions: Local
Advisory: cpujan2024 (JAN 2024)
Microsoft
Apache Commons Compress: Denial of service via CPU consumption for malformed TAR file
vendor_msrc·2023-09-12·CVSS 5.5
CVE-2023-42503 [MEDIUM] CWE-20 Apache Commons Compress: Denial of service via CPU consumption for malformed TAR file
Apache Commons Compress: Denial of service via CPU consumption for malformed TAR file
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
apache: apache
Customer Action Required: Yes
Red Hat
apache-commons-compress: Denial of service via CPU consumption for malformed TAR file
vendor_redhat·2023-09-02·CVSS 5.0
CVE-2023-42503 [MEDIUM] apache-commons-compress: Denial of service via CPU consumption for malformed TAR file
apache-commons-compress: Denial of service via CPU consumption for malformed TAR file
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], i
Debian
CVE-2023-42503: libcommons-compress-java - Improper Input Validation, Uncontrolled Resource Consumption vulnerability in Ap...
vendor_debian·2023·CVSS 5.0
CVE-2023-42503 [MEDIUM] CVE-2023-42503: libcommons-compress-java - Improper Input Validation, Uncontrolled Resource Consumption vulnerability in Ap...
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 impac
Apache
Apache tika: CVE-2023-42503
vendor_apache·CVSS 5.5
CVE-2023-42503 [MEDIUM] Apache tika: CVE-2023-42503
Apache tika: CVE-2023-42503
commons-compress uncontrolled resource consumption vulnerability while parsing tar files ??? ???->2.9.0
OSV
Apache Commons Compress denial of service vulnerability
osv·2023-09-14·CVSS 5.0
CVE-2023-42503 [MEDIUM] Apache Commons Compress denial of service vulnerability
Apache Commons Compress denial of service vulnerability
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 subse
OSV
CVE-2023-42503: Improper Input Validation, Uncontrolled Resource Consumption vulnerability in Apache Commons Compress in TAR parsing
osv·2023-09-14·CVSS 5.0
CVE-2023-42503 [MEDIUM] CVE-2023-42503: Improper Input Validation, Uncontrolled Resource Consumption vulnerability in Apache Commons Compress in TAR parsing
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 impac
GHSA
Apache Commons Compress denial of service vulnerability
ghsa·2023-09-14·CVSS 5.0
CVE-2023-42503 [MEDIUM] CWE-20 Apache Commons Compress denial of service vulnerability
Apache Commons Compress denial of service vulnerability
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 subse
No detection rules found.
No public exploits indexed.
2023-09-14
Published