CVE Vulnerabilities

CVE-2018-11771

Loop with Unreachable Exit Condition ('Infinite Loop')

Published: Aug 16, 2018 | Modified: Nov 07, 2023
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
4.3 MODERATE
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Ubuntu
LOW

When reading a specially crafted ZIP archive, the read method of Apache Commons Compress 1.7 to 1.17s 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.

Weakness

The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.

Affected Software

Name Vendor Start Version End Version
Commons_compress Apache 1.7.0 (including) 1.17.0 (including)
Red Hat Fuse 7.6.0 RedHat commons-compress *
Libcommons-compress-java Ubuntu bionic *
Libcommons-compress-java Ubuntu cosmic *
Libcommons-compress-java Ubuntu devel *
Libcommons-compress-java Ubuntu disco *
Libcommons-compress-java Ubuntu eoan *
Libcommons-compress-java Ubuntu esm-apps/bionic *
Libcommons-compress-java Ubuntu esm-apps/xenial *
Libcommons-compress-java Ubuntu focal *
Libcommons-compress-java Ubuntu groovy *
Libcommons-compress-java Ubuntu hirsute *
Libcommons-compress-java Ubuntu impish *
Libcommons-compress-java Ubuntu jammy *
Libcommons-compress-java Ubuntu kinetic *
Libcommons-compress-java Ubuntu lunar *
Libcommons-compress-java Ubuntu mantic *
Libcommons-compress-java Ubuntu noble *
Libcommons-compress-java Ubuntu oracular *
Libcommons-compress-java Ubuntu trusty *
Libcommons-compress-java Ubuntu xenial *

References