CVE-2021-36374 Apache Ant ZIP, and ZIP based, archive denial of service vulerability
Attackers can cause Apache Ant builds to crash via memory exhaustion by providing specially crafted ZIP or JAR files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-36374?
CVE-2021-36374 is a medium-severity denial of service vulnerability in Oracle Agile Product Lifecycle Management, published on 14 Jul 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
When reading a specially crafted ZIP archive, or a derived formats, an Apache Ant build can be made to allocate large amounts of memory that leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. Commonly used derived formats from ZIP archives are for instance JAR files and many office files. Apache Ant prior to 1.9.16 and 1.10.11 were affected.
Weakness: CWE-130
Which versions are affected by CVE-2021-36374?
4 open source packages ship an affected version, including org.apache.ant:ant. It affects 36 products.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.ant:ant Maven | From 1.10.0 | 1.10.11 |
org.apache.ant:ant Maven | From 1.10.0 | 1.10.11 |
org.apache.ant:ant Maven | From 1.9.0 | 1.9.16 |
org.apache.ant:ant Maven | From 1.9.0 | 1.9.16 |
Products include Apache Ant, Oracle Agile Engineering Data Management, Oracle Agile Product Lifecycle Management, Oracle Banking Trade Finance, Oracle Banking Treasury Management, Oracle Communications Cloud Native Core Automated Test Suite and 30 more.
How do I fix CVE-2021-36374?
Upgrade org.apache.ant:ant to a fixed version for your release line: 1.10.11 or 1.9.16.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-36374 being exploited?
There is no known exploitation of CVE-2021-36374 in the wild and no public exploit code.
Other vulnerabilities in Oracle Agile Product Lifecycle Management
- CVE-2020-11979 Code injection in Apache Ant
- CVE-2026-78254 Apache Ant: Path traversal in ftp and scp tasks allows arbitrary file write
- CVE-2020-1945 Sensitive Data Exposure in Apache Ant
- CVE-2021-36373 Apache Ant TAR archive denial of service vulnerability
All Oracle Agile Product Lifecycle Management vulnerabilities
Sources
Also known as AZL-25954, AZL-34809, CLEANSTART-2025-KO30612, DEBIAN-CVE-2021-36374, GHSA-5v34-g2px-j4fw, MINI-83w9-2jrf-v2cg and 3 more.