Home / Apache Software Foundation / Apache Commons Compress / CVE-2023-42503
CVE-2023-42503: is it exploited, and which versions of Apache Software Foundation Apache Commons Compress are affected and fixed?
CVE-2023-42503 is an improper input validation vulnerability in Apache Software Foundation Apache Commons Compress. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:08 UTC). Affected: org.apache.commons:commons-compress from 1.22 before 1.24.0 (GitHub advisory GHSA-cgwf-w82q-5jrr). Fixed in 1.24.0 (GitHub advisory GHSA-cgwf-w82q-5jrr). Severity: Medium (5.5, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:36 UTC.
What is CVE-2023-42503?
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], 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.
From the CVE record by apache, last updated February 13, 2025, 17:09 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache Commons Compress org.apache.commons:commons-compress | from 1.22 before 1.24.0 | 1.24.0 |
As the CVE record by apache states it, last updated February 13, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.apache.commons:commons-compress | >= 1.22, < 1.24.0 | 1.24.0 | GHSA-cgwf-w82q-5jrr |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 13, 2025. Summary: Apache Commons Compress denial of service vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | commons compress | from 1.22 before 1.24.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:23 UTC.
How severe is CVE-2023-42503?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.5 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-42503 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.60% probability of exploitation activity in the next 30 days, percentile 50.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://lists.apache.org/thread/5xwcyr600mn074vgxq92tjssrchmc93c vendor-advisory
- https://security.netapp.com/advisory/ntap-20231020-0003/
Who found and reported it?
- Yakov Shafranovich, Amazon Web Services (reporter)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- September 11, 2023
- Published
- September 14, 2023, 07:45 UTC
- CVE record updated
- February 13, 2025, 17:09 UTC by apache
- NVD
- Modified, last modified June 17, 2026, 06:23 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:36 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache Commons Compress?
- Feb 19, 2024CVE-2024-25710 Apache Software Foundation Apache Commons Compress: infinite loop (denial of service)
- Feb 19, 2024CVE-2024-26308 Apache Software Foundation Apache Commons Compress: denial of service (resources allocated without limits)
- Jul 13, 2021CVE-2021-36090 Apache Software Foundation Apache Commons Compress: improper Handling of Length Parameter Inconsistency
- Jul 13, 2021CVE-2021-35517 Apache Software Foundation Apache Commons Compress: improper Handling of Length Parameter Inconsistency
- Jul 13, 2021CVE-2021-35516 Apache Software Foundation Apache Commons Compress: improper Handling of Length Parameter Inconsistency
- Jul 13, 2021CVE-2021-35515 Apache Software Foundation Apache Commons Compress: excessive iteration
- Aug 29, 2019CVE-2019-12402 Apache Software Foundation Apache Commons Compress: infinite loop (denial of service)
- Aug 16, 2018CVE-2018-11771 Apache Software Foundation Apache Commons Compress: infinite loop (denial of service)
Every CVE in Apache Commons Compress
Questions about CVE-2023-42503
Is CVE-2023-42503 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:08 UTC. FIRST's EPSS gives it a 0.60% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Apache Software Foundation Apache Commons Compress are affected by CVE-2023-42503?
org.apache.commons:commons-compress from 1.22 before 1.24.0, per the GitHub advisory GHSA-cgwf-w82q-5jrr. The tables above give every range the sources list.
Which version fixes CVE-2023-42503?
1.24.0, per the GitHub advisory GHSA-cgwf-w82q-5jrr. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-42503?
Medium (5.5, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2023-42503?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.