CVEBrief

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.

Exploited in the wild
Not in CISA KEV
KEV 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
Exploit odds (EPSS)
0.60% in 30 days
higher than 50% of CVEs; FIRST, December 2, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

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?

VendorProductAffectedFixed or not affected from
Apache Software FoundationApache Commons Compress org.apache.commons:commons-compressfrom 1.22 before 1.24.01.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?

EcosystemPackageAffectedFixed inAdvisory
Mavenorg.apache.commons:commons-compress>= 1.22, < 1.24.01.24.0GHSA-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?

VendorProductVersionsType
apachecommons compressfrom 1.22 before 1.24.0application

NVD analysis (status Modified), last modified June 17, 2026, 06:23 UTC.

How severe is CVE-2023-42503?

ScoreVersionVectorSource
Medium 5.5CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HNVD

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?

Who found and reported it?

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?

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.