CVE-2021-36374
Apache Ant ZIP, and ZIP based, archive denial of service vulerability
Reported by apache · Published July 14, 2021
ant is fixed in 1.10.11 and 1.9.16 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.ant:ant | Maven Central | 1.10.11, 1.9.16 |
| ant-jdepend | Amazon Linux | 1.9.16-1.amzn2.0.1 |
| ant-commons-logging | Amazon Linux | 1.9.16-1.amzn2.0.1 |
| ant-apache-log4j | Amazon Linux | 1.9.16-1.amzn2.0.1 |
| ant-swing | Amazon Linux | 1.9.16-1.amzn2.0.1 |
| ant | Amazon Linux | 1.9.16-1.amzn2.0.1 |
| ant-commons-net | Amazon Linux | 1.9.16-1.amzn2.0.1 |
| ant-jmf | Amazon Linux | 1.9.16-1.amzn2.0.1 |
| ant-apache-oro | Amazon Linux | 1.9.16-1.amzn2.0.1 |
| ant-junit | Amazon Linux | 1.9.16-1.amzn2.0.1 |
| ant-apache-resolver | Amazon Linux | 1.9.16-1.amzn2.0.1 |
| ant-apache-bsf | Amazon Linux | 1.9.16-1.amzn2.0.1 |
21 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Ant | 1.4, Apache Ant 1.9.x, Apache Ant 1.10.x |
| amazon:2 | ant-jdepend | 0 |
| amazon:2 | ant-commons-logging | 0 |
| amazon:2 | ant-apache-log4j | 0 |
| amazon:2 | ant-swing | 0 |
| amazon:2 | ant | 0 |
| Apache Software Foundation | Apache Ant | 1.10.x, 1.4, 1.9.x |
| Maven | org.apache.ant:ant | 1.10.0, 1.9.0 |
| amazon:2 | ant-commons-net | 0 |
| amazon:2 | ant-jmf | 0 |
| amazon:2 | ant-apache-oro | 0 |
| amazon:2 | ant-junit | 0 |
| amazon:2 | ant-apache-resolver | 0 |
| amazon:2 | ant-apache-bsf | 0 |
| alpine | apache-ant | 0 |
| amazon:2 | ant-jsch | 0 |
| arch | ant | 0 |
| amazon:2 | ant-apache-xalan2 | 0 |
| amazon:2 | ant-javamail | 0 |
| amazon:2 | ant-apache-regexp | 0 |
…and 5 more
Timeline
- Jul 14, 2021 EPSS Score (30 in total, the first dated here)
- Jul 14, 2021 CVE Published
- Mar 17, 2026 Security Advisory (7 in total, the first dated here)
- Mar 20, 2026 Distribution Patch (3 in total, the first dated here)
- Jul 27, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-36374
vulnetix vdb fixes CVE-2021-36374
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-36374/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- [groovy-commits] 20210714 [groovy] 08/09: GROOVY-10169: Bump Ant version to 1.10.11 (incorporates CVE-2021-36373 and CVE-2021-36374) mailing-listx_refsource_MLIST
- [groovy-commits] 20210715 [groovy] 02/07: GROOVY-10169: Bump Ant version to 1.10.11 (incorporates CVE-2021-36373 and CVE-2021-36374) mailing-listx_refsource_MLIST
- [groovy-notifications] 20210715 [jira] [Resolved] (GROOVY-10169) Bump Ant version to 1.10.11 (incorporates CVE-2021-36373 and CVE-2021-36374) mailing-listx_refsource_MLIST
- [myfaces-dev] 20210830 [GitHub] [myfaces-tobago] lofwyr14 opened a new pull request #1215: build: CVE fix mailing-listx_refsource_MLIST
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2021-36374 advisory