HighGHSA-mc84-pj99-q6hhCVE-2021-36090

Improper Handling of Length Parameter Inconsistency in Compress

Published 2 Aug 2021 · Updated 8 Mar 2024

Is your project on an affected org.apache.commons:commons-compress?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<1.21
Fixed in
1.21
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.commons:commons-compress -DdepVersion=1.21 -DforceVersion=true

Details

When reading a specially crafted ZIP archive, Compress can be made to allocate large amounts of memory that finally leads to an out of memory error even for very small inputs. This could be used to mount a denial of service attack against services that use Compress' zip package.

Is GHSA-mc84-pj99-q6hh in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.commons:commons-compress, and gives you the command that fixes it.

More advisories for org.apache.commons:commons-compress

  • MediumCVE-2024-26308Apache Commons Compress: OutOfMemoryError unpacking broken Pack200 file · 19 Feb 2024
  • MediumCVE-2024-25710Apache Commons Compress: Denial of service caused by an infinite loop for a corrupted DUMP file · 19 Feb 2024
  • MediumCVE-2023-42503Apache Commons Compress denial of service vulnerability · 14 Sept 2023
  • MediumCVE-2012-2098Uncontrolled Resource Consumption in Apache Commons Compress · 13 May 2022
  • HighCVE-2021-35517Improper Handling of Length Parameter Inconsistency in Compress · 2 Aug 2021
  • HighCVE-2021-35516Improper Handling of Length Parameter Inconsistency in Compress · 2 Aug 2021
All 11 advisories for org.apache.commons:commons-compress

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.