CVE-2021-36374 Apache Ant ZIP, and ZIP based, archive denial of service vulerability

Medium 5.5 Published Updated

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.

PackageAffectedFixed in
org.apache.ant:ant MavenFrom 1.10.01.10.11
org.apache.ant:ant MavenFrom 1.10.01.10.11
org.apache.ant:ant MavenFrom 1.9.01.9.16
org.apache.ant:ant MavenFrom 1.9.01.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.

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.

Is CVE-2021-36374 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free