GHSA-h436-432x-8fvx
Apache Commons Compress vulnerable to denial of service due to infinite loop
Quick fix
GHSA-h436-432x-8fvx — org.apache.commons:commons-compress: upgrade to the fixed version with the command below.
# pom.xml: bump <version>1.16</version> for org.apache.commons:commons-compressDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
1.11Fixed in: 1.16# pom.xml: bump <version>1.16</version> for org.apache.commons:commons-compress3.2.7Fixed in: 3.7.4# pom.xml: bump <version>3.7.4</version> for com.liferay:com.liferay.portal.tools.bundle.supportNo fixed version published yet for io.takari:commons-compress (maven). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-1324[ADVISORY]
- https://github.com/apache/commons-compress/commit/2a2f1dc48e22a34ddb72321a4db211da91aa933b[WEB]
- https://arxiv.org/pdf/2306.05534.pdf[WEB]
- https://github.com/advisories/GHSA-h436-432x-8fvx[ADVISORY]
- https://github.com/apache/commons-compress[PACKAGE]
- https://github.com/jensdietrich/xshady-release/tree/main/CVE-2018-1324[WEB]
- https://lists.apache.org/thread.html/1c7b6df6d1c5c8583518a0afa017782924918e4d6acfaf23ed5b2089@%3Cdev.commons.apache.org%3E[WEB]
- https://lists.apache.org/thread.html/b8ef29df0f1d55aa741170748352ae8e425c7b1d286b2f257711a2dd@%3Cdev.creadur.apache.org%3E[WEB]
- https://lists.apache.org/thread.html/ff8dcfe29377088ab655fda9d585dccd5b1f07fabd94ae84fd60a7f8@%3Ccommits.pulsar.apache.org%3E[WEB]
- https://lists.apache.org/thread.html/r5532dc8d5456b5151e8c286801e2e5769f5c04118b29c3b5d13ea387@%3Cissues.beam.apache.org%3E[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:maven/org.apache.commons/commons-compress"]}'