CVE-2019-12402
Vulnerability in Apache Commons Compress
Check your servers for CVE-2019-12402
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2019-12402 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 12.2%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 96.8% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Apache Commons Compress |
affected 1.15 to 1.18
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2019-12402 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2019-12402RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2019-12402Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2019-12402
trivy image --scanners vuln IMAGE | grep CVE-2019-12402
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- FEDORA-2019-c96a8d12b0 lists.fedoraproject.org · vendor advisory
- FEDORA-2019-da0eac1eb6 lists.fedoraproject.org · vendor advisory
Other references
- [creadur-commits] 20191022 [creadur-rat] branch master updated: RAT-258: Update to latest commons-compress to fix… lists.apache.org · mailing list
- [druid-commits] 20191115 [GitHub] [incubator-druid] ccaominh opened a new pull request #8878: Address security… lists.apache.org · mailing list
- [flink-issues] 20200306 [GitHub] [flink] nielsbasjes opened a new pull request #11333: [FLINK-14121] Update… lists.apache.org · mailing list
- [flink-issues] 20200306 [GitHub] [flink] flinkbot edited a comment on issue #11333: [FLINK-14121] Update… lists.apache.org · mailing list
- [flink-issues] 20200306 [GitHub] [flink] flinkbot commented on issue #11333: [FLINK-14121] Update commons-compress… lists.apache.org · mailing list
- [flink-issues] 20200310 [GitHub] [flink] GJL commented on issue #11333: [FLINK-14121] Update commons-compress… lists.apache.org · mailing list
- [flink-issues] 20200311 [GitHub] [flink] nielsbasjes commented on issue #11333: [FLINK-14121] Update… lists.apache.org · mailing list
- [flink-issues] 20200311 [GitHub] [flink] GJL commented on issue #11333: [FLINK-14121] Update commons-compress… lists.apache.org · mailing list
- [flink-issues] 20200311 [GitHub] [flink] flinkbot edited a comment on issue #11333: [FLINK-14121] Update… lists.apache.org · mailing list
- [flink-issues] 20200311 [GitHub] [flink] nielsbasjes edited a comment on issue #11333: [FLINK-14121] Update… lists.apache.org · mailing list
- [flink-issues] 20200312 [GitHub] [flink] zentol commented on issue #11333: [FLINK-14121] Update commons-compress… lists.apache.org · mailing list
- [flink-issues] 20200312 [GitHub] [flink] GJL commented on issue #11333: [FLINK-14121] Update commons-compress… lists.apache.org · mailing list
16 more
- [flink-issues] 20200313 [GitHub] [flink] GJL commented on issue #11333: [FLINK-14121] Update commons-compress… lists.apache.org · mailing list
- [flink-issues] 20200313 [GitHub] [flink] zentol commented on issue #11333: [FLINK-14121] Update commons-compress… lists.apache.org · mailing list
- [flink-issues] 20200313 [GitHub] [flink] GJL closed pull request #11333: [FLINK-14121] Update commons-compress… lists.apache.org · mailing list
- [lucene-solr-user] 20200320 CVEs (vulnerabilities) that apply to Solr 8.4.1 lists.apache.org · mailing list
- [lucene-solr-user] 20200320 Re: CVEs (vulnerabilities) that apply to Solr 8.4.1 lists.apache.org · mailing list
- [brooklyn-dev] 20200403 [GitHub] [brooklyn-server] nakomis opened a new pull request #1089: Bumps commons-compress… lists.apache.org · mailing list
- https://www.oracle.com/security-alerts/cpuapr2020.html oracle.com
- https://www.oracle.com/security-alerts/cpujul2020.html oracle.com
- https://lists.apache.org/thread.html/308cc15f1f1dc53e97046fddbac240e6cd16de89a2746cf257be7f5b%40%3Cdev.commons.apache.org%3E lists.apache.org
- https://www.oracle.com/security-alerts/cpuoct2020.html oracle.com
- https://www.oracle.com/security-alerts/cpujan2021.html oracle.com
- https://www.oracle.com/security-alerts/cpuApr2021.html oracle.com
- https://www.oracle.com//security-alerts/cpujul2021.html oracle.com
- https://www.oracle.com/security-alerts/cpuoct2021.html oracle.com
- https://www.oracle.com/security-alerts/cpuapr2022.html oracle.com
- https://security.netapp.com/advisory/ntap-20230818-0001/ security.netapp.com
Source: the record CVE-2019-12402 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse