VDB
Sign up
MEDIUM5.5

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-compress

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.commons:commons-compress
Introduced in: 1.11Fixed in: 1.16
Fix# pom.xml: bump <version>1.16</version> for org.apache.commons:commons-compress
Maven/com.liferay:com.liferay.portal.tools.bundle.support
Introduced in: 3.2.7Fixed in: 3.7.4
Fix# pom.xml: bump <version>3.7.4</version> for com.liferay:com.liferay.portal.tools.bundle.support
Maven/io.takari:commons-compress

No fixed version published yet for io.takari:commons-compress (maven). Pin to a known-safe version or switch to an alternative.

References

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"]}'