CVE-2012-2098
Algorithmic complexity vulnerability in the sorting algorithms in bzip2 compressing stream (BZip2CompressorOutputStream) in Apache…
Check your servers for CVE-2012-2098
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2012-2098 affects a package, with the command that installs the fix. The free plan covers one server and does not need a credit card.
Description
Algorithmic complexity vulnerability in the sorting algorithms in bzip2 compressing stream (BZip2CompressorOutputStream) in Apache Commons Compress before 1.4.1 allows remote attackers to cause a denial of service (CPU consumption) via a file with many repeating inputs.
Exploitation
EPSS 12.8%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 96.9% of all scored CVEs. Scores of 27 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
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-2012-2098 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2012-2098RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2012-2098Alpine
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-2012-2098
trivy image --scanners vuln IMAGE | grep CVE-2012-2098
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 or read how to install the agent.
References
Advisories
- FEDORA-2013-5548 lists.fedoraproject.org · vendor advisory
- FEDORA-2012-8428 lists.fedoraproject.org · vendor advisory
- 49255 secunia.com · third party advisory
- FEDORA-2012-8465 lists.fedoraproject.org · vendor advisory
- 49286 secunia.com · third party advisory
- FEDORA-2013-5546 lists.fedoraproject.org · vendor advisory
Other references
- apache-commons-ant-bzip2-dos(75857) exchange.xforce.ibmcloud.com · vdb entry
- 20120523 [CVE-2012-2098] Apache Commons Compress and Apache Ant denial of service vulnerability archives.neohapsis.com · mailing list
- 82161 osvdb.org · vdb entry
- 53676 securityfocus.com · vdb entry
- 1027096 securitytracker.com · vdb entry
- [lucene-solr-user] 20200320 CVEs (vulnerabilities) that apply to Solr 8.4.1 lists.apache.org · mailing list
- http://commons.apache.org/compress/security.html commons.apache.org
- http://www-01.ibm.com/support/docview.wss?uid=swg21644047 www-01.ibm.com
- http://packetstormsecurity.org/files/113014/Apache-Commons-Compress-Apache-Ant-Denial-Of-Service.html packetstormsecurity.org
- http://ant.apache.org/security.html ant.apache.org
- https://www.oracle.com/security-alerts/cpujan2021.html oracle.com
- [oss-security] 20230913 CVE-2023-42503: Apache Commons Compress: Denial of service via CPU consumption for malformed… openwall.com · mailing list
Source: the record CVE-2012-2098 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