CVE-2021-35517: Apache Commons Compress TAR PAX Header Memory Exhaustion
- Vendors
- NetAppOracle CorporationApache Software Foundation
CVE-2021-35517 is an uncontrolled resource-allocation vulnerability in the TAR handling functionality of Apache Commons Compress. Insufficient validation of PAX header value sizes permits a specially crafted TAR archive to cause excessive memory allocation during parsing, potentially from a very small input. Apache Commons Compress 1.21 corrects the size-validation flaw.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker can exhaust heap memory in an application that processes attacker-controlled TAR archives through Apache Commons Compress. The resulting out-of-memory condition can terminate or severely impair the application or service, producing denial of service. The vulnerability does not provide confidentiality or integrity impact.
Mitigation
If you can’t patch tonight, do this now.
Until updates are installed, do not process untrusted TAR archives with vulnerable Apache Commons Compress versions. Enforce archive-content and PAX-header size limits before processing where feasible, and run archive processing in resource-constrained, isolated workers with memory limits to reduce service-wide denial-of-service impact.
Remediation
Patch, then assume compromise.
Upgrade Apache Commons Compress to version 1.21 or a later vendor-maintained release incorporating the fix. Apply the relevant vendor security update for products that bundle the vulnerable library.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-35517 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2021-35517 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-35517?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2021-35517.
- Is there a patch for CVE-2021-35517?
- Upgrade Apache Commons Compress to version 1.21 or a later vendor-maintained release incorporating the fix. Apply the relevant vendor security update for products that bundle the vulnerable library.
- What products are affected by CVE-2021-35517?
- NetApp Activeiq Unified Manager, Oracle Corporation Banking Apis, Oracle Corporation Banking Digital Experience, Oracle Corporation Banking Enterprise Default Management, Oracle Corporation Banking Party Management, and at least 22 more.
- How severe is CVE-2021-35517?
- CVE-2021-35517 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 10.6% (96th percentile) as of Oct 16, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.