# CVE-2021-35516: Apache Commons Compress 1.6 to 1.20 denial of service vulnerability

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 12.4%, higher than 96% of CVEs (2026-12-01)
- Published: 2021-07-13T07:15:20.000Z
- Modified: 2026-06-17T03:57:37.097Z
- Also known as: GHSA-crv7-7245-f45f
- Weaknesses: CWE-130, CWE-770
- Assigned by: apache

## Description

When reading a specially crafted 7Z archive, Compress can be made to allocate large amounts of memory that finally leads to an out of memory error even for very small inputs. This could be used to mount a denial of service attack against services that use Compress' sevenz package.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Commons Compress: from 1.6 before Apache Commons Compress*
- org.apache.commons:commons-compress (Maven): before 1.21
- apache commons_compress: from 1.6 up to 1.20
- netapp active_iq_unified_manager: no versions given
- netapp oncommand_insight: no versions given
- oracle banking_digital_experience: from 18.1 up to 18.3; 19.1; 19.2; 20.1; 21.1
- oracle banking_enterprise_default_management: 2.7.0
- oracle banking_party_management: 2.7.0
- oracle business_process_management_suite: 12.2.1.3.0; 12.2.1.4.0
- oracle commerce_guided_search: 11.3.2
- oracle communications_billing_and_revenue_management: 12.0.0.4
- oracle communications_cloud_native_core_automated_test_suite: 1.8.0
- oracle communications_cloud_native_core_service_communication_proxy: 1.14.0
- oracle communications_cloud_native_core_unified_data_repository: 1.14.0
- oracle communications_diameter_intelligence_hub: from 8.0.0 up to 8.2.3
- oracle communications_session_route_manager: from 8.0.0 up to 8.2.5
- oracle financial_services_crime_and_compliance_management_studio: 8.0.8.2.0; 8.0.8.3.0
- oracle financial_services_enterprise_case_management: 8.0.7.2.0; 8.0.8.1.0
- oracle flexcube_universal_banking: from 14.0.0 up to 14.3.0; 12.4.0; 14.5
- oracle healthcare_data_repository: 8.1.0
- oracle insurance_policy_administration: 11.0.2; 11.1.0; 11.2.8; 11.3.0; 11.3.1
- oracle peoplesoft_enterprise_peopletools: 8.57; 8.58; 8.59
- oracle primavera_unifier: from 17.7 up to 17.12; 18.8; 19.12; 20.12
- oracle utilities_testing_accelerator: 6.0.0.1.1; 6.0.0.2.2; 6.0.0.3.1
- oracle webcenter_portal: 12.2.1.3.0; 12.2.1.4.0
- oracle communications_messaging_server: 8.1

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://commons.apache.org/proper/commons-compress/security-reports.html> (vendor-advisory, web)
- <https://lists.apache.org/thread.html/rf68442d67eb166f4b6cf0bbbe6c7f99098c12954f37332073c9822ca%40%3Cuser.commons.apache.org%3E> (mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2021/07/13/2> (mailing-list, third-party-advisory, web)
- <https://lists.apache.org/thread.html/rf5b1016fb15b7118b9a5e16bb0b78cb4f1dfcf7821eb137ab5757c91%40%3Cannounce.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/rb064d705fdfa44b5dae4c366b369ef6597951083196321773b983e71%40%3Ccommits.pulsar.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/rd4332baaf6debd03d60deb7ec93bee49e5fdbe958cb6800dff7fb00e%40%3Cnotifications.skywalking.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/rb7adf3e55359819e77230b4586521e5c6874ce5ed93384bdc14d6aee%40%3Cnotifications.skywalking.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/rfba19167efc785ad3561e7ef29f340d65ac8f0d897aed00e0731e742%40%3Cnotifications.skywalking.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/rba65ed5ddb0586f5b12598f55ec7db3633e7b7fede60466367fbf86a%40%3Cnotifications.skywalking.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/r9f54c0caa462267e0cc68b49f141e91432b36b23348d18c65bd0d040%40%3Cnotifications.skywalking.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/racd0c0381c8404f298b226cd9db2eaae965b14c9c568224aa3f437ae%40%3Cnotifications.skywalking.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/rb6e1fa80d34e5ada45f72655d84bfd90db0ca44ef19236a49198c88c%40%3Cnotifications.skywalking.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/r67ef3c07fe3b8c1b02d48012149d280ad6da8e4cec253b527520fb2b%40%3Cdev.poi.apache.org%3E> (mailing-list)
- <https://www.oracle.com/security-alerts/cpuoct2021.html> (patch, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (patch, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20211022-0001/> (third-party-advisory)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (patch, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-35516> (advisory)
- <https://security.netapp.com/advisory/ntap-20211022-0001> (web)
- <https://lists.apache.org/thread.html/rfba19167efc785ad3561e7ef29f340d65ac8f0d897aed00e0731e742@%3Cnotifications.skywalking.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rf5b1016fb15b7118b9a5e16bb0b78cb4f1dfcf7821eb137ab5757c91@%3Cannounce.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rd4332baaf6debd03d60deb7ec93bee49e5fdbe958cb6800dff7fb00e@%3Cnotifications.skywalking.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rba65ed5ddb0586f5b12598f55ec7db3633e7b7fede60466367fbf86a@%3Cnotifications.skywalking.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rb7adf3e55359819e77230b4586521e5c6874ce5ed93384bdc14d6aee@%3Cnotifications.skywalking.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rb6e1fa80d34e5ada45f72655d84bfd90db0ca44ef19236a49198c88c@%3Cnotifications.skywalking.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rb064d705fdfa44b5dae4c366b369ef6597951083196321773b983e71@%3Ccommits.pulsar.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/racd0c0381c8404f298b226cd9db2eaae965b14c9c568224aa3f437ae@%3Cnotifications.skywalking.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/r9f54c0caa462267e0cc68b49f141e91432b36b23348d18c65bd0d040@%3Cnotifications.skywalking.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/r67ef3c07fe3b8c1b02d48012149d280ad6da8e4cec253b527520fb2b@%3Cdev.poi.apache.org%3E> (web)

## Sources

- CVE List: [CVE-2021-35516](https://www.cve.org/CVERecord?id=CVE-2021-35516), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-crv7-7245-f45f](https://github.com/advisories/GHSA-crv7-7245-f45f), CC-BY-4.0, modified 2024-03-08
- NVD: [CVE-2021-35516](https://nvd.nist.gov/vuln/detail/CVE-2021-35516), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-35516 · Whole record: https://cve.day/CVE-2021-35516.json · Rebuilt by cve.day 2026-11-25T22:58:02.567Z
