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?
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
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
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
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2018-1324
- Linkgithub.com/apache/commons-compress/commit/2a2f1dc48e22a34ddb72321a4db211da91aa933b
- Linkarxiv.org/pdf/2306.05534.pdf
- Advisorygithub.com/advisories/GHSA-h436-432x-8fvx
- Packagegithub.com/apache/commons-compress
- Linkgithub.com/jensdietrich/xshady-release/tree/main/CVE-2018-1324
- Linklists.apache.org/thread.html/1c7b6df6d1c5c8583518a0afa017782924918e4d6acfaf23ed5b2089@%3Cdev.commons.apache.org%3E
- Linklists.apache.org/thread.html/b8ef29df0f1d55aa741170748352ae8e425c7b1d286b2f257711a2dd@%3Cdev.creadur.apache.org%3E
- Linklists.apache.org/thread.html/ff8dcfe29377088ab655fda9d585dccd5b1f07fabd94ae84fd60a7f8@%3Ccommits.pulsar.apache.org%3E
- Linklists.apache.org/thread.html/r5532dc8d5456b5151e8c286801e2e5769f5c04118b29c3b5d13ea387@%3Cissues.beam.apache.org%3E
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.