# CVE-2021-35517: Improper Handling of Length Parameter Inconsistency in Compress

Source: https://junglewise.ai/threats/cve-2021-35517-improper-handling-of-length-parameter-inconsistency-in-compress  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-08-02  
License: CC BY 4.0 with a link back

CVE-2021-35517 · Severity: low · CVSS 3.1 · Published 2021-08-02

Improper Handling of Length Parameter Inconsistency in Compress

Technologies: [org.apache.commons:commons-compress (Maven)](https://junglewise.ai/threats/technologies/org-apache-commons-commons-compress). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-35517 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-35517 being exploited in the wild.

**How severe is CVE-2021-35517?** Low severity, with a CVSS score of 3.1, published 2 August 2021.

**Which products and versions are affected?** org.apache.commons:commons-compress (Maven) ECOSYSTEM:introduced=0,fixed=1.21.

**Is there a fix for CVE-2021-35517?** Yes. org.apache.commons:commons-compress (Maven): upgrade to 1.21 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-35517?** Check whether you run org.apache.commons:commons-compress (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.commons:commons-compress (Maven): upgrade to 1.21 or later

  ```sh
  # set org.apache.commons:commons-compress to 1.21 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.commons:commons-compress (Maven) ECOSYSTEM:introduced=0,fixed=1.21

## Identifiers

- CVE-2021-35517
- GHSA-xqfj-vm6h-2x34

## Related threats

- [Apache Commons Compress: OutOfMemoryError unpacking broken Pack200 file](https://junglewise.ai/threats/cve-2024-26308-apache-commons-compress-outofmemoryerror-unpacking-broken-pack200)
- [Apache Commons Compress: Denial of service caused by an infinite loop for a corrupted DUMP file](https://junglewise.ai/threats/cve-2024-25710-apache-commons-compress-denial-of-service-caused-by-an-infinite)
- [Apache Commons Compress denial of service vulnerability](https://junglewise.ai/threats/cve-2023-42503-apache-commons-compress-denial-of-service-vulnerability)
- [Uncontrolled Resource Consumption in Apache Commons Compress](https://junglewise.ai/threats/cve-2012-2098-uncontrolled-resource-consumption-in-apache-commons-compress)
- [Improper Handling of Length Parameter Inconsistency in Compress](https://junglewise.ai/threats/cve-2021-36090-improper-handling-of-length-parameter-inconsistency-in-compress)
