CVE-2021-36374 json
Apache Ant ZIP, and ZIP based, archive denial of service vulerability
published 2021-07-14 5 y ago modified 2026-08-25 2 mo ago also GHSA-5v34-g2px-j4fw , EUVD-2021-1582
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.apache.ant:ant 1.9.16, 1.10.11
- apache ant 1.9.16, 1.10.11
- oracle timesten_in-memory_database 11.2.2.8.27
- ant Debian 14, Debian 13, Debian 12 1.10.11-1
debian advisories DEBIAN-CVE-2021-36374
- ant SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 1.10.18-150200.4.31.3
- bsf SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 2.4.0-150200.13.8.2
- qdox SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 2.0.1-150200.3.6.2
- antlr SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 2.7.7-150200.18.10.2
- junit5 SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +9 more 5.14.4-150200.3.15.15
- jdepend SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 2.10-150200.11.6.2
- picocli SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +9 more 4.7.6-150200.3.19.2
- zstd-jni SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 1.5.7.16-150200.5.7.2
suse advisories SUSE-SU-2026:4677-1SUSE-SU-2022:1418-1SUSE-SU-2022:1417-1
- ant openSUSE Leap 16.0 1.10.18-160000.1.1
- ant-antlr openSUSE Leap 16.0 1.10.18-160000.1.1
- ant-junit openSUSE Leap 16.0 1.10.18-160000.1.1
- ant-junit5 openSUSE Leap 16.0 1.10.18-160000.1.1
- ant openSUSE Tumbleweed 1.10.12-1.1
opensuse advisories openSUSE-SU-2026:21891-1openSUSE-SU-2024:11688-1
- apache-ant Alpine 3.24, Alpine 3.23, Alpine 3.22 +8 more 1.10.11-r0
alpine advisories ALPINE-CVE-2021-36374
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- javapackages-bootstrap CBL-Mariner 2.0 1.5.0-6
- javapackages-bootstrap Azure Linux 3.0 1.14.0-2
azure linux advisories AZL-25954AZL-34809
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- ant Arch Linux 1.10.11-1
arch linux advisories AVG-2151
- ant.apache.org/security.html advisory
- oracle.com/security-alerts/cpuoct2021.html advisory
- oracle.com/security-alerts/cpujan2022.html advisory
- oracle.com/security-alerts/cpuapr2022.html advisory
- oracle.com/security-alerts/cpujul2022.html advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-36374 updated cvss 5.5
ant: excessive memory allocation when reading a specially crafted ZIP archive or a derived formats
-
Red Hat BPM Suite 6 antaffected: no fix planned “Out of support scope”
-
Red Hat Decision Manager 7 antaffected: no fix available
-
Red Hat Enterprise Linux 6 ant, ant-jmf, ant-jsch, ant-trax, ant-antlr, ant-junit, +15 more Red Hat Enterprise Linux 7 ant, ant-jmf, ant-jsch, ant-antlr, ant-junit, ant-swing, +14 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 ant, ant-xz, ant-jmf, ant-lib, ant-jsch, ant-antlr, +16 moreaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 9 ant, ant-xz, ant-jmf, ant-lib, ant-jsch, ant-antlr, +20 moreaffected: no fix available
-
Red Hat Fuse 7 antaffected: no fix planned “Will not fix”
-
Red Hat Integration Camel K 1 antaffected: no fix available “Fix deferred”
-
Red Hat JBoss BRMS 6 ant Red Hat JBoss Data Virtualization 6 ant Red Hat JBoss Enterprise Application Platform 6 ant Red Hat JBoss Fuse 6 ant Red Hat JBoss Fuse Service Works 6 ant Red Hat JBoss Operations Network 3 antaffected: no fix planned “Out of support scope”
show 4 moreshow fewer
-
Red Hat OpenShift Container Platform 3.11 jenkinsaffected: no fix available “Fix deferred”
-
Red Hat OpenShift Container Platform 4 jenkins, openshift4/ose-metering-hiveaffected: no fix available, no fix planned “Will not fix”
-
Red Hat Process Automation 7 antaffected: no fix available
-
Red Hat Software Collections rh-maven36-ant, rh-maven36-ant-xz, rh-maven36-ant-jmf, rh-maven36-ant-lib, rh-maven36-ant-jsch, rh-maven36-ant-antlr, +18 moreaffected: no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.64% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.ant:ant | >=1.9.0, <1.9.16 >=1.10.0, <1.10.11 |
1.9.16 1.10.11 |
Affected products
- Apache Software Foundation Apache Ant
Classification
- Weakness
-
- CWE-130 Improper Handling of Length Parameter Inconsistency
References
-
ant.apache.org
/security.html
web, patch, vendor-advisory
-
oracle.com
/security-alerts/cpuoct2021.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpujan2022.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuapr2022.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpujul2022.html
web, patch, third-party-advisory
-
lists.apache.org
/thread.html/rdd5412a5b9a25aed2a02c3317052d38a97128314d50bc1ed36e81d38%40%3Cuser.ant.apache.org%3E
web, mailing-list, vendor-advisory
-
lists.apache.org
/thread.html/r27919fd4db07c487239c1d9771f480d89ce5ee2750aa9447309b709a%40%3Ccommits.groovy.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r544c9e8487431768465b8b2d13982c75123109bd816acf839d46010d%40%3Ccommits.groovy.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rad36f470647c5a7c02dd78c9973356d2840766d132b597b6444e373a%40%3Cnotifications.groovy.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rf4bb79751a02889623195715925e4fd8932dd3c97e0ade91395a96c6%40%3Cdev.myfaces.apache.org%3E
mailing-list
-
security.netapp.com
/advisory/ntap-20210819-0007/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-36374
advisory
-
lists.apache.org
/thread.html/r27919fd4db07c487239c1d9771f480d89ce5ee2750aa9447309b709a@%3Ccommits.groovy.apache.org%3E
web
-
lists.apache.org
/thread.html/r544c9e8487431768465b8b2d13982c75123109bd816acf839d46010d@%3Ccommits.groovy.apache.org%3E
web
-
lists.apache.org
/thread.html/rad36f470647c5a7c02dd78c9973356d2840766d132b597b6444e373a@%3Cnotifications.groovy.apache.org%3E
web
-
lists.apache.org
/thread.html/rf4bb79751a02889623195715925e4fd8932dd3c97e0ade91395a96c6@%3Cdev.myfaces.apache.org%3E
web
-
security.netapp.com
/advisory/ntap-20210819-0007
web
Sources
- CVE List CVE-2021-36374
- GitHub Advisory GHSA-5v34-g2px-j4fw
- NVD CVE-2021-36374
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.