Vulnerability · Published Jul 14, 2021 · Assigned by apache

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

Medium 5.5

In plain English

A medium-severity security flaw in Apache Ant from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.6% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)2.6%top 14.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20apache-ant1.10.11-r0ALPINE-CVE-2021-36374
Alpine:v3.21apache-ant1.10.11-r0ALPINE-CVE-2021-36374
Alpine:v3.22apache-ant1.10.11-r0ALPINE-CVE-2021-36374
Alpine:v3.23apache-ant1.10.11-r0ALPINE-CVE-2021-36374
Alpine:v3.24apache-ant1.10.11-r0ALPINE-CVE-2021-36374
Debian:12ant1.10.11-1DEBIAN-CVE-2021-36374
Debian:13ant1.10.11-1DEBIAN-CVE-2021-36374
Debian:14ant1.10.11-1DEBIAN-CVE-2021-36374
Mavenorg.apache.ant:ant1.10.11GHSA-5v34-g2px-j4fw
Mavenorg.apache.ant:ant1.9.16GHSA-5v34-g2px-j4fw
Ubuntu:22.04:LTSantno fix listedUBUNTU-CVE-2021-36374
Ubuntu:24.04:LTSantno fix listedUBUNTU-CVE-2021-36374
Ubuntu:25.10antno fix listedUBUNTU-CVE-2021-36374
Ubuntu:26.04:LTSantno fix listedUBUNTU-CVE-2021-36374
Ubuntu:26.10antno fix listedUBUNTU-CVE-2021-36374

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Ant 1.4 – before Apache Ant*Apache Ant 1.9.x – through 1.9.15Apache Ant 1.10.x – through 1.10.10

Weakness: CWE-130

References