CVE-2021-36374Apache Ant ZIP, and ZIP based, archive denial of service vulerability
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.
What to do
Fixed builds are available from Alpine, Debian, Maven: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | ant | Fix pending | UBUNTU-CVE-2021-36374 | |
| Ubuntu 26.04 | ant | Under investigation | UBUNTU-CVE-2021-36374 | |
| Ubuntu 25.10 | ant | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-36374 | |
| Ubuntu 24.04 | ant | Under investigation | UBUNTU-CVE-2021-36374 | |
| Ubuntu 22.04 | ant | Under investigation | UBUNTU-CVE-2021-36374 | |
| Ubuntu 20.04 | ant | Fix pending | UBUNTU-CVE-2021-36374 | |
| Ubuntu 18.04 | ant | Fix pending | UBUNTU-CVE-2021-36374 | |
| Ubuntu 16.04 | ant | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-36374 | |
| Ubuntu 14.04 | ant | Fix pending | UBUNTU-CVE-2021-36374 | |
| Debian 14 | ant | Fixed | 1.10.11-1 | DEBIAN-CVE-2021-36374 |
| Debian 13 | ant | Fixed | 1.10.11-1 | DEBIAN-CVE-2021-36374 |
| Debian 12 | ant | Fixed | 1.10.11-1 | DEBIAN-CVE-2021-36374 |
| Red Hat Enterprise Linux 9 | ant | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-antlr | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-apache-bcel | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-apache-bsf | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-apache-oro | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-apache-regexp | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-apache-resolver | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-apache-xalan2 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-commons-logging | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-commons-net | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-javamail | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-jdepend | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-jmf | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-jsch | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-junit | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-junit5 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-lib | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-manual | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-openjdk11 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-openjdk17 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-openjdk21 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-openjdk8 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-swing | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-testutil | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-unbound | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | ant-xz | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | ant | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-antlr | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-apache-bcel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-apache-bsf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-apache-log4j | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-apache-oro | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-apache-regexp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-apache-resolver | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-apache-xalan2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-commons-logging | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-commons-net | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-javadoc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-javamail | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-jdepend | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-jmf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-jsch | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-junit | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-lib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-manual | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-swing | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-testutil | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ant-xz | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | ant | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-antlr | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-apache-bcel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-apache-bsf | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-apache-log4j | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-apache-oro | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-apache-regexp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-apache-resolver | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-apache-xalan2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-commons-logging | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-commons-net | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-javadoc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-javamail | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-jdepend | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-jmf | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-jsch | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-junit | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-manual | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-swing | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ant-testutil | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-antlr | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-apache-bcel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-apache-bsf | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-apache-log4j | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-apache-oro | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-apache-regexp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-apache-resolver | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-commons-logging | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-commons-net | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-javadoc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-javamail | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-jdepend | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-jmf | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-jsch | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-junit | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-manual | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-nodeps | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-scripts | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-swing | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ant-trax | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | apache-ant | Fixed | 1.10.11-r0 | ALPINE-CVE-2021-36374 |
| Alpine Linux 3.23 | apache-ant | Fixed | 1.10.11-r0 | ALPINE-CVE-2021-36374 |
| Alpine Linux 3.22 | apache-ant | Fixed | 1.10.11-r0 | ALPINE-CVE-2021-36374 |
| Alpine Linux 3.21 | apache-ant | Fixed | 1.10.11-r0 | ALPINE-CVE-2021-36374 |
| Alpine Linux 3.20 | apache-ant | Fixed | 1.10.11-r0 | ALPINE-CVE-2021-36374 |
| Alpine Linux 3.19 | apache-ant | Fixed | 1.10.11-r0 | ALPINE-CVE-2021-36374 |
| Alpine Linux 3.18 | apache-ant | Fixed | 1.10.11-r0 | ALPINE-CVE-2021-36374 |
| Alpine Linux 3.17 | apache-ant | Fixed | 1.10.11-r0 | ALPINE-CVE-2021-36374 |
| Alpine Linux 3.16 | apache-ant | Fixed | 1.10.11-r0 | ALPINE-CVE-2021-36374 |
| Alpine Linux 3.15 | apache-ant | Fixed | 1.10.11-r0 | ALPINE-CVE-2021-36374 |
| Alpine Linux 3.14 | apache-ant | Fixed | 1.10.11-r0 | ALPINE-CVE-2021-36374 |
| Maven library | org.apache.ant:ant | Fixed | 1.9.16 | GHSA-5v34-g2px-j4fw |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Ant: affected: 1.4 to before Apache Ant*, Apache Ant 1.9.x to 1.9.15, Apache Ant 1.10.x to 1.10.10
Workaround: Apache Ant 1.9.x users should upgrade to 1.9.16 or later. Apache Ant 1.10.x users should upgrade to 1.10.11 or later.
References
- https://ant.apache.org/security.html
- https://lists.apache.org/thread.html/rdd5412a5b9a25aed2a02c3317052d38a97128314d50bc1ed36e81d38%40%3Cuser.ant.apache.org%3E
- https://lists.apache.org/thread.html/r27919fd4db07c487239c1d9771f480d89ce5ee2750aa9447309b709a%40%3Ccommits.groovy.apache.org%3E
- https://lists.apache.org/thread.html/r544c9e8487431768465b8b2d13982c75123109bd816acf839d46010d%40%3Ccommits.groovy.apache.org%3E
- https://lists.apache.org/thread.html/rad36f470647c5a7c02dd78c9973356d2840766d132b597b6444e373a%40%3Cnotifications.groovy.apache.org%3E
- https://lists.apache.org/thread.html/rf4bb79751a02889623195715925e4fd8932dd3c97e0ade91395a96c6%40%3Cdev.myfaces.apache.org%3E
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://security.netapp.com/advisory/ntap-20210819-0007/
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.