Every CVE Search/ Get API key

CVE-2019-12402

Denial of Service in Apache Commons Compress

7.5 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

16.2%Down 1.0 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2019-12402
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-835
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2019-12402
Updated
2026-11-02
EUVDEUVD-2019-0685 No score

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.

Record
EUVD-2019-0685
Updated
2026-11-03
GitHub AdvisoriesGHSA-53x6-4x5p-rrvv 7.5

Denial of Service in Apache Commons Compress

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.

Record
GHSA-53x6-4x5p-rrvv
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-835
Updated
2026-11-02
OSV 7.5

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.

Record
CVE-2019-12402
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2019-12402 7.5

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.

Record
DEBIAN-CVE-2019-12402
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 6 moreShow less
OSVGHSA-53x6-4x5p-rrvv 7.5

Denial of Service in Apache Commons Compress

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.

Record
GHSA-53x6-4x5p-rrvv
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-835
Updated
2026-11-02
OSVUBUNTU-CVE-2019-12402 7.5

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.

Record
UBUNTU-CVE-2019-12402
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVCLSA-2026-1784769508 No score

TuxCare security update for org.apache.commons:commons-compress (1 CVE)

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

Record
CLSA-2026-1784769508
Updated
2026-11-02
OSVCLSA-2026-1785947990 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.15-tuxcare.1.

Record
CLSA-2026-1785947990
Updated
2026-11-02
OSVMGASA-2020-0001 No score

Updated apache-commons-compress- packages fix security vulnerability

pdated apache-commons-compress packages fix security vulnerability:

A resource consumption vulnerability was discovered in apache-commons- compress in the way NioZipEncoding encodes filenames. Applications that use Compress to create archives, with one of the filenames within the archive being controlled by the user, may be vulnerable to this flaw. A remote attacker could exploit this flaw to cause an infinite loop during the archive creation, thus leading to a denial of service (CVE-2019-12402).

Record
MGASA-2020-0001
Updated
2026-11-02
OSVopenSUSE-SU-2024:10618-1 No score

apache-commons-compress-1.21-1.2 on GA media

These are all security issues fixed in the apache-commons-compress-1.21-1.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10618-1
Updated
2026-11-02

Affected products

Show 8 moreShow less

Affected packages

Affected packages
PackageAffectedFixed
org.apache.commons:commons-compress
Maven
1.15 up to 1.19
1.19
io.github.1tchy.java9modular.org.apache.commons:commons-compress
Maven
1.18.1 to 1.18.1 None known
org.apache.commons:commons-compress
TuxCare:Maven
1.18 up to 1.18-tuxcare.2, plus listed versions
1.18-tuxcare.1
1.18-tuxcare.2
org.apache.commons:commons-compress
TuxCare:Maven
From an advisory covering 3 CVEs
1.15 up to 1.15-tuxcare.1
1.15-tuxcare.1
libcommons-compress-java
Debian:12
before 1.18-3
1.18-3
libcommons-compress-java
Debian:13
before 1.18-3
1.18-3
libcommons-compress-java
Debian:14
before 1.18-3
1.18-3
org.apache.commons:commons-compress
Maven
1.15 up to 1.19, plus listed versions
1.161.16.11.171.18
1.19
io.github.1tchy.java9modular.org.apache.commons:commons-compress
Maven
Listed versions
1.18.1
None known
apache-commons-compress
Mageia:7
before 1.19-1.mga7
1.19-1.mga7
libcommons-compress-java
Ubuntu:18.04:LTS
All versions, plus listed versions
1.13-11.13-21.18-1~18.04
None known
apache-commons-compress
openSUSE:Tumbleweed
From an advisory covering 5 CVEs
before 1.21-1.2
1.21-1.2

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-2019-12402 is a high vulnerability (CVSS 7.5) in Apache Commons Compress, published August 29, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 16.2%, the 96th percentile. Fixed in org.apache.commons:commons-compress 1.19.

References

Show 60 moreShow less
MoveEnter Open