CVE Vulnerabilities

CVE-2019-12402

Loop with Unreachable Exit Condition ('Infinite Loop')

Published: Aug 30, 2019 | Modified: Nov 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
7.5 IMPORTANT
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

The file name encoding algorithm used internally in Apache Commons Compress 1.15 to 1.18 can get into an infinite loop when faced with specially crafted inputs. This can lead to a denial of service attack if an attacker can choose the file names inside of an archive created by Compress.

Weakness

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

Affected Software

NameVendorStart VersionEnd Version
Commons_compressApache1.15 (including)1.18 (including)
Red Hat Fuse 7.9RedHatapache-commons-compress*
Libcommons-compress-javaUbuntubionic*
Libcommons-compress-javaUbuntudisco*
Libcommons-compress-javaUbuntuesm-apps/bionic*
Libcommons-compress-javaUbuntutrusty*
Libcommons-compress-javaUbuntuupstream*

References