CVEfocus › CVE database › CVE-2021-36373

CVE-2021-36373Apache Ant TAR archive denial of service vulnerability

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

When reading a specially crafted TAR archive an Apache Ant build can be made to allocate large amounts of memory that finally leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. 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
26Fix pending
3Under investigation
69Will 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-36373
Ubuntu 26.04antUnder investigationUBUNTU-CVE-2021-36373
Ubuntu 25.10antWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-36373
Ubuntu 24.04antUnder investigationUBUNTU-CVE-2021-36373
Ubuntu 22.04antUnder investigationUBUNTU-CVE-2021-36373
Ubuntu 20.04antFix pendingUBUNTU-CVE-2021-36373
Ubuntu 18.04antFix pendingUBUNTU-CVE-2021-36373
Ubuntu 16.04antWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-36373
Ubuntu 14.04antFix pendingUBUNTU-CVE-2021-36373
Debian 14antFixed1.10.11-1DEBIAN-CVE-2021-36373
Debian 13antFixed1.10.11-1DEBIAN-CVE-2021-36373
Debian 12antFixed1.10.11-1DEBIAN-CVE-2021-36373
Red Hat Enterprise Linux 9antWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-antlrWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-apache-bcelWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-apache-bsfWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-apache-oroWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-apache-regexpWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-apache-resolverWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-apache-xalan2Will not fix
Will not fix
Red Hat Enterprise Linux 9ant-commons-loggingWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-commons-netWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-javamailWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-jdependWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-jmfWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-jschWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-junitWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-junit5Will not fix
Will not fix
Red Hat Enterprise Linux 9ant-libWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-manualWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-openjdk11Will not fix
Will not fix
Red Hat Enterprise Linux 9ant-openjdk17Will not fix
Will not fix
Red Hat Enterprise Linux 9ant-openjdk21Will not fix
Will not fix
Red Hat Enterprise Linux 9ant-openjdk8Will not fix
Will not fix
Red Hat Enterprise Linux 9ant-swingWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-testutilWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-unboundWill not fix
Will not fix
Red Hat Enterprise Linux 9ant-xzWill not fix
Will not fix
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-36373
Alpine Linux 3.23apache-antFixed1.10.11-r0ALPINE-CVE-2021-36373
Alpine Linux 3.22apache-antFixed1.10.11-r0ALPINE-CVE-2021-36373
Alpine Linux 3.21apache-antFixed1.10.11-r0ALPINE-CVE-2021-36373
Alpine Linux 3.20apache-antFixed1.10.11-r0ALPINE-CVE-2021-36373
Alpine Linux 3.19apache-antFixed1.10.11-r0ALPINE-CVE-2021-36373
Alpine Linux 3.18apache-antFixed1.10.11-r0ALPINE-CVE-2021-36373
Alpine Linux 3.17apache-antFixed1.10.11-r0ALPINE-CVE-2021-36373
Alpine Linux 3.16apache-antFixed1.10.11-r0ALPINE-CVE-2021-36373
Alpine Linux 3.15apache-antFixed1.10.11-r0ALPINE-CVE-2021-36373
Alpine Linux 3.14apache-antFixed1.10.11-r0ALPINE-CVE-2021-36373
Maven libraryorg.apache.ant:antFixed1.9.16GHSA-q5r4-cfpx-h6fh

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.