Uncontrolled Resource Consumption in Apache Commons Compress
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.commons:commons-compress | < 1.4.1 | 1.4.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2012-2098
- https://github.com/apache/commons-compress/commit/020c03d8ef579e80511023fb46ece30e9c3dd27d
- https://github.com/apache/commons-compress/commit/0600296ab8f8a0bbdfedd483f51b38005eb8e34e
- https://github.com/apache/commons-compress/commit/1ce57d976c4f25fe99edcadf079840c278f3cb84
- https://github.com/apache/commons-compress/commit/2ab2fcb356753927afaa731b9d2dcc47d3083408
- https://github.com/apache/commons-compress/commit/654222e628097763ee6ca561ae77be5c06666173
- https://github.com/apache/commons-compress/commit/6ced422bf5eca3aac05396367bafb33ec21bf74e
- https://github.com/apache/commons-compress/commit/6e95697e783767f3549f00d7d2e1b002eac4a3d4
- https://github.com/apache/commons-compress/commit/8f702469cbf4c451b6dea349290bc4af0f6f76c7
- https://github.com/apache/commons-compress/commit/b06f7b41c936ef1a79589d16ea5c1d8b93f71f66
- https://github.com/apache/commons-compress/commit/cca0e6e5341aacddefd4c4d36cef7cbdbc2a8777
- https://github.com/apache/commons-compress/commit/ea31005111f0abede7e43e4ba0012e62e0808b22
- https://github.com/apache/commons-compress/commit/fdd7459bc5470e90024dbe762249166481cce769
- https://web.archive.org/web/20140724002926/http://secunia.com/advisories/49286
- https://web.archive.org/web/20140724023114/http://secunia.com/advisories/49255
- https://web.archive.org/web/20200517014414/http://www.securitytracker.com/id?1027096
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://web.archive.org/web/20130525085523/http://www.securityfocus.com/bid/53676
- https://lists.apache.org/thread.html/r204ba2a9ea750f38d789d2bb429cc0925ad6133deea7cbc3001d96b5@<solr-user.lucene.apache.org>
- https://github.com/apache/commons-compress
- https://exchange.xforce.ibmcloud.com/vulnerabilities/75857
- http://ant.apache.org/security.html
- http://archives.neohapsis.com/archives/bugtraq/2012-05/0130.html
- http://commons.apache.org/compress/security.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081697.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081746.html
- http://lists.fedoraproject.org/pipermail/package-announce/2013-May/105049.html
- http://lists.fedoraproject.org/pipermail/package-announce/2013-May/105060.html
- http://packetstormsecurity.org/files/113014/Apache-Commons-Compress-Apache-Ant-Denial-Of-Service.html
- http://www-01.ibm.com/support/docview.wss?uid=swg21644047
- http://www.openwall.com/lists/oss-security/2023/09/13/3
- Weakness (CWE)
CWE-400- Platform
- Java / Kotlin (Maven)
- Package
org.apache.commons:commons-compress- Disclosed
- 13.05.2022
- Updated
- 11.10.2026 12:21
Sources and licenses
OSV / GitHub Advisory Database - GHSA-6fxm-66hq-fc96 - CC BY 4.0
Vulnerability history: org.apache.commons:commons-compress
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 11
- First → latest
- 10.2018 02.2024
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 5
- Medium 6
Disclosures per year
- 2018: 1
- 2019: 2
- 2020: 0
- 2021: 4
- 2022: 1
- 2023: 1
- 2024: 2
- 2025: 0
- 2026: 0
-
Uncontrolled Resource Consumption in Apache Commons Compress this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.