NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
HIGH severity

CVE-2021-35515 — commons-compress

HIGH

CVE-2021-35515 is a high-severity (CVSS 7.5) CWE-834 vulnerability in org.apache.commons:commons-compress. 3 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for org.apache.commons:commons-compress — see the affected versions and patch details below.

Excessive Iteration in Compress

Also known asGHSA-7hfm-57qf-j43q
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
3 known
Exploitation data as of Oct 31, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
11.6%probability of exploitation in next 30 days
Moderate Risk0.00%
Lower risk than most CVEs96th percentile — riskier than 96% of all scored CVEsHighest risk
0.00%5.03%10.1%15.1%1.2%11.6%May 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
☕org.apache.commons:commons-compress

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

Description

When reading a specially crafted 7Z archive, the construction of the list of codecs that decompress an entry can result in an infinite loop. This could be used to mount a denial of service attack against services that use Compress' sevenz package.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenorg.apache.commons:commons-compressall versions1.21org.apache.commons:commons-compress:1.21

Affected Products

26 products · 47 configurations
Application
commons compressapache
≥ 1.6 && ≤ 1.20
range
Application
active iq unified managernetapp
all
Application
oncommand insightnetapp
all
Application
banking digital experienceoracle
≥ 18.1 && ≤ 18.3
3 versions
19.120.121.1
Application
banking enterprise default managementoracle
1 version
2.7.0
Application
banking party managementoracle
1 version
2.7.0
Exploits & PoCs
3

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.commons:commons-compress, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update org.apache.commons:commons-compress to 1.21 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-35515 is resolved across your whole dependency graph.

  3. Workarounds

    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate
ProductFixed inAdvisory
Red Hat Fuse 7.11apache-commons-compressRHSA-2022:5532
Red Hat Virtualization Engine 4.4apache-commons-compress-0:1.21-1.2.el8evRHSA-2022:5555

Frequently Asked Questions

When reading a specially crafted 7Z archive, the construction of the list of codecs that decompress an entry can result in an infinite loop. This could be used to mount a denial of service attack against services that use Compress' sevenz package.
O3 Security · Impact-Aware SCA

Is CVE-2021-35515 in your dependencies?

Find it across Maven, including transitive dependencies.

CVE-2021-35515: commons-compress DoS — Fixed in 1.21