MediumGHSA-h436-432x-8fvxCVE-2018-1324

Apache Commons Compress vulnerable to denial of service due to infinite loop

Published 14 Mar 2019 · Updated 27 Feb 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 packages

Affected
>=1.11 <1.16
Fixed in
1.16
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.commons:commons-compress -DdepVersion=1.16 -DforceVersion=true
Affected
>=3.2.7 <3.7.4
Fixed in
3.7.4
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=com.liferay:com.liferay.portal.tools.bundle.support -DdepVersion=3.7.4 -DforceVersion=true
Affected
1.12
Fixed in
No fix released

Details

A specially crafted ZIP archive can be used to cause an infinite loop inside of Apache Commons Compress' extra field parser used by the ZipFile and ZipArchiveInputStream classes in versions 1.11 to 1.15. This can be used to mount a denial of service attack against services that use Compress' zip package.

Is GHSA-h436-432x-8fvx 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-36090Improper Handling of Length Parameter Inconsistency in Compress · 2 Aug 2021
  • HighCVE-2021-35517Improper 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.