Every CVE Search/ Get API key

CVE-2018-11771

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

5.5 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

5.25%Down 6.7 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 5.5

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.

Record
CVE-2018-11771
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-835
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2018-11771
Updated
2026-11-02
EUVDEUVD-2018-0618 No score

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.

Record
EUVD-2018-0618
Updated
2026-11-03
GitHub AdvisoriesGHSA-hrmr-f5m6-m9pq 5.5

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

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.

Record
GHSA-hrmr-f5m6-m9pq
CVSS 3.0
5.5 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-835
Updated
2026-11-02
OSV 5.5

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.

Record
CVE-2018-11771
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2018-11771 5.5

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.

Record
DEBIAN-CVE-2018-11771
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 7 moreShow less
OSVGHSA-hrmr-f5m6-m9pq 5.5

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

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.

Record
GHSA-hrmr-f5m6-m9pq
CVSS 3.0
5.5 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-835
Updated
2026-11-02
OSVRHLW-2026-685154d7989c42e9 5.5

Lightwell Security Advisory: commons-compress 1.9.0.rhlw-00005

Red Hat Lightwell has released org.apache.commons:commons-compress 1.9.0.rhlw-00005 with backported fixes for CVE-2018-11771, CVE-2021-35515, CVE-2021-35517, CVE-2021-36090, and CVE-2024-25710.

CVE-2018-11771: 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.

CVE-2021-35515: When reading a specially crafted 7Z archive, the construction of the list of codecs that decompress an entry can result in an infinite loop. This could be used to mount a denial of service attack against services that use Compress' sevenz package.

CVE-2021-35517: When reading a specially crafted TAR archive, Compress can be made to allocate large amounts of memory that finally leads to an out of memory error even for very small inputs. This could be used to mount a denial of service attack against services that use Compress' tar package.

CVE-2021-36090: When reading a specially crafted ZIP archive, Compress can be made to allocate large amounts of memory that finally leads to an out of memory error even for very small inputs. This could be used to mount a denial of service attack against services that use Compress' zip package.

CVE-2024-25710: Apache Commons Compress: Denial of service caused by an infinite loop for a corrupted DUMP file

This patched artifact is a drop-in replacement for org.apache.commons:commons-compress 1.9.0 from Maven Central.

Record
RHLW-2026-685154d7989c42e9
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2018-11771 5.5

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.

Record
UBUNTU-CVE-2018-11771
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVCLSA-2026-1791959990 No score

TuxCare security update for org.apache.commons:commons-compress (2 CVEs)

TuxCare rebuilt org.apache.commons:commons-compress to address 2 CVEs. Fixed in 1.4.1-tuxcare.1.

Record
CLSA-2026-1791959990
Updated
2026-11-02
OSVCLSA-2026-1792010634 No score

TuxCare security update for org.apache.commons:commons-compress (2 CVEs)

TuxCare rebuilt org.apache.commons:commons-compress to address 2 CVEs. Fixed in 1.8.1-tuxcare.2.

Record
CLSA-2026-1792010634
Updated
2026-11-02
OSVCLSA-2026-1792741304 No score

TuxCare security update for org.apache.commons:commons-compress (3 CVEs)

TuxCare rebuilt org.apache.commons:commons-compress to address 3 CVEs. Fixed in 1.9-tuxcare.1.

Record
CLSA-2026-1792741304
Updated
2026-11-02
OSVMGASA-2019-0001 No score

Updated pache-commons-compress packages fix security vulnerabilities

A flaw was found in Apache Commons Compress versions 1.11 to 1.15. 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 (CVE-2018-1324).

Apache Commons Compress versions 1.7 to 1.17 are vulnerable to a denial of service attack via crafted ZIP archive. When reading a specially crafted ZIP archive, the read method of 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 (CVE-2018-11771).

Record
MGASA-2019-0001
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.apache.commons:commons-compress
Maven
1.7 up to 1.18
1.18
org.apache.commons:commons-compress
TuxCare:Maven
From an advisory covering 2 CVEs
1.4.1 up to 1.4.1-tuxcare.1
1.4.1-tuxcare.1
org.apache.commons:commons-compress
TuxCare:Maven
From an advisory covering 2 CVEs
1.8.1 up to 1.8.1-tuxcare.2, plus listed versions
1.8.1-tuxcare.1
1.8.1-tuxcare.2
org.apache.commons:commons-compress
TuxCare:Maven
From an advisory covering 3 CVEs
1.9 up to 1.9-tuxcare.1
1.9-tuxcare.1
libcommons-compress-java
Debian:12
before 1.18-1
1.18-1
libcommons-compress-java
Debian:13
before 1.18-1
1.18-1
libcommons-compress-java
Debian:14
before 1.18-1
1.18-1
org.apache.commons:commons-compress
Maven
1.7 up to 1.18, plus listed versions
1.101.111.121.131.14
Show 7 moreShow less
1.151.161.16.11.171.81.8.11.9
1.18
apache-commons-compress
Mageia:6
From an advisory covering 2 CVEs
before 1.12-1.2.mga6
1.12-1.2.mga6
org.apache.commons:commons-compress
Red Hat Lightwell:Maven
From an advisory covering 5 CVEs
before 1.9.0.rhlw-00005, plus listed versions
1.01.11.21.31.4
Show 8 moreShow less
1.4.11.51.61.71.81.8.11.91.9.0
1.9.0.rhlw-00005
libcommons-compress-java
Ubuntu:16.04:LTS
All versions, plus listed versions
1.9-11.10-11.10-2
None known
libcommons-compress-java
Ubuntu:18.04:LTS
All versions, plus listed versions
1.13-11.13-21.18-1~18.04
None known

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-11771 is a medium vulnerability (CVSS 5.5) in Apache Commons Compress, published August 16, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 5.25%, the 92nd percentile. Fixed in org.apache.commons:commons-compress 1.18.

References

Show 81 moreShow less
MoveEnter Open