CVEfocus › CVE database › CVE-2021-36374

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

CVSS 5.5 MediumEPSS 2.6% (higher than 86% of CVEs)Published 2021-07-14Updated 2024-08-04Assigner: apache

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.

CWE-130

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

15Fixed
52Fix pending
3Under investigation
43Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10antFix pendingUBUNTU-CVE-2021-36374
Ubuntu 26.04antUnder investigationUBUNTU-CVE-2021-36374
Ubuntu 25.10antWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-36374
Ubuntu 24.04antUnder investigationUBUNTU-CVE-2021-36374
Ubuntu 22.04antUnder investigationUBUNTU-CVE-2021-36374
Ubuntu 20.04antFix pendingUBUNTU-CVE-2021-36374
Ubuntu 18.04antFix pendingUBUNTU-CVE-2021-36374
Ubuntu 16.04antWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-36374
Ubuntu 14.04antFix pendingUBUNTU-CVE-2021-36374
Debian 14antFixed1.10.11-1DEBIAN-CVE-2021-36374
Debian 13antFixed1.10.11-1DEBIAN-CVE-2021-36374
Debian 12antFixed1.10.11-1DEBIAN-CVE-2021-36374
Red Hat Enterprise Linux 9antFix pending
Affected
Red Hat Enterprise Linux 9ant-antlrFix pending
Affected
Red Hat Enterprise Linux 9ant-apache-bcelFix pending
Affected
Red Hat Enterprise Linux 9ant-apache-bsfFix pending
Affected
Red Hat Enterprise Linux 9ant-apache-oroFix pending
Affected
Red Hat Enterprise Linux 9ant-apache-regexpFix pending
Affected
Red Hat Enterprise Linux 9ant-apache-resolverFix pending
Affected
Red Hat Enterprise Linux 9ant-apache-xalan2Fix pending
Affected
Red Hat Enterprise Linux 9ant-commons-loggingFix pending
Affected
Red Hat Enterprise Linux 9ant-commons-netFix pending
Affected
Red Hat Enterprise Linux 9ant-javamailFix pending
Affected
Red Hat Enterprise Linux 9ant-jdependFix pending
Affected
Red Hat Enterprise Linux 9ant-jmfFix pending
Affected
Red Hat Enterprise Linux 9ant-jschFix pending
Affected
Red Hat Enterprise Linux 9ant-junitFix pending
Affected
Red Hat Enterprise Linux 9ant-junit5Fix pending
Affected
Red Hat Enterprise Linux 9ant-libFix pending
Affected
Red Hat Enterprise Linux 9ant-manualFix pending
Affected
Red Hat Enterprise Linux 9ant-openjdk11Fix pending
Affected
Red Hat Enterprise Linux 9ant-openjdk17Fix pending
Affected
Red Hat Enterprise Linux 9ant-openjdk21Fix pending
Affected
Red Hat Enterprise Linux 9ant-openjdk8Fix pending
Affected
Red Hat Enterprise Linux 9ant-swingFix pending
Affected
Red Hat Enterprise Linux 9ant-testutilFix pending
Affected
Red Hat Enterprise Linux 9ant-unboundFix pending
Affected
Red Hat Enterprise Linux 9ant-xzFix pending
Affected
Red Hat Enterprise Linux 8antFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-antlrFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-apache-bcelFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-apache-bsfFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-apache-log4jFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-apache-oroFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-apache-regexpFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-apache-resolverFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-apache-xalan2Fix pending
Fix deferred
Red Hat Enterprise Linux 8ant-commons-loggingFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-commons-netFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-javadocFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-javamailFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-jdependFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-jmfFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-jschFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-junitFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-libFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-manualFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-swingFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-testutilFix pending
Fix deferred
Red Hat Enterprise Linux 8ant-xzFix pending
Fix deferred
Red Hat Enterprise Linux 7antWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-antlrWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-apache-bcelWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-apache-bsfWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-apache-log4jWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-apache-oroWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-apache-regexpWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-apache-resolverWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-apache-xalan2Will not fix
Out of support scope
Red Hat Enterprise Linux 7ant-commons-loggingWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-commons-netWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-javadocWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-javamailWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-jdependWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-jmfWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-jschWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-junitWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-manualWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-swingWill not fix
Out of support scope
Red Hat Enterprise Linux 7ant-testutilWill not fix
Out of support scope
Red Hat Enterprise Linux 6antWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-antlrWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-apache-bcelWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-apache-bsfWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-apache-log4jWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-apache-oroWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-apache-regexpWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-apache-resolverWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-commons-loggingWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-commons-netWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-javadocWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-javamailWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-jdependWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-jmfWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-jschWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-junitWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-manualWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-nodepsWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-scriptsWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-swingWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-traxWill not fix
Out of support scope
Alpine Linux 3.24apache-antFixed1.10.11-r0ALPINE-CVE-2021-36374
Alpine Linux 3.23apache-antFixed1.10.11-r0ALPINE-CVE-2021-36374
Alpine Linux 3.22apache-antFixed1.10.11-r0ALPINE-CVE-2021-36374
Alpine Linux 3.21apache-antFixed1.10.11-r0ALPINE-CVE-2021-36374
Alpine Linux 3.20apache-antFixed1.10.11-r0ALPINE-CVE-2021-36374
Alpine Linux 3.19apache-antFixed1.10.11-r0ALPINE-CVE-2021-36374
Alpine Linux 3.18apache-antFixed1.10.11-r0ALPINE-CVE-2021-36374
Alpine Linux 3.17apache-antFixed1.10.11-r0ALPINE-CVE-2021-36374
Alpine Linux 3.16apache-antFixed1.10.11-r0ALPINE-CVE-2021-36374
Alpine Linux 3.15apache-antFixed1.10.11-r0ALPINE-CVE-2021-36374
Alpine Linux 3.14apache-antFixed1.10.11-r0ALPINE-CVE-2021-36374
Maven libraryorg.apache.ant:antFixed1.9.16GHSA-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.

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

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.