VDB
Sign up
MEDIUM5.5

GHSA-hrmr-f5m6-m9pq

Moderate severity vulnerability that affects org.apache.commons:commons-compress

Quick fix

GHSA-hrmr-f5m6-m9pq — org.apache.commons:commons-compress: upgrade to the fixed version with the command below.

# pom.xml: bump <version>1.18</version> for org.apache.commons:commons-compress

Details

When reading a specially crafted ZIP archive, the read method of Apache Commons Compress 1.7 to 1.17's ZipArchiveInputStream can fail to return the correct EOF indication after the end of the stream has been reached. When combined with a java.io.InputStreamReader this can lead to an infinite stream, which 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.7Fixed in: 1.18
Fix# pom.xml: bump <version>1.18</version> for org.apache.commons:commons-compress

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