Skip to content
OpenAdvisories
Medium · 5.5 CVE-2021-36373 EUVD-2021-1834GHSA-q5r4-cfpx-h6fh

Apache Ant TAR archive denial of service vulnerability

Published Jul 14, 2021 · Updated Aug 4, 2024 · Assigned by apache

Description

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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Ant Apache Ant 1.9.x – ≤ 1.9.15, Apache Ant 1.10.x – ≤ 1.10.10 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ant 1.10.11-1 —
Debian 13 ant 1.10.11-1 —
Debian 12 ant 1.10.11-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 ant No fix yet —
Ubuntu 26.04 LTS ant No fix yet —
Ubuntu 25.10 ant No fix yet —
Ubuntu 24.04 LTS ant No fix yet —
Ubuntu 22.04 LTS ant No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS ant No fix yet —
Ubuntu Pro 18.04 LTS ant No fix yet —
Ubuntu Pro 16.04 LTS ant No fix yet —
Ubuntu Pro 14.04 LTS ant No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP3 ant +2 1.10.7-150200.4.6.1 SUSE-SU-2022:1418-1
SLES 12 SP5 ant +1 1.9.4-3.9.1 SUSE-SU-2022:1417-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 ant 1.9.4-3.9.1 SUSE-SU-2022:1417-1
SLE Real Time 15 SP2 ant +2 1.10.7-150200.4.6.1 SUSE-SU-2022:1418-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ant 1.10.12-1.1 openSUSE-SU-2024:11688-1
openSUSE Leap 15.4 ant +3 1.10.7-150200.4.6.1 SUSE-SU-2022:1418-1
openSUSE Leap 15.3 ant +3 1.10.7-150200.4.6.1 SUSE-SU-2022:1418-1
ReleasePackageFixed inAdvisory
Alpine v3.24 apache-ant 1.10.11-r0 —
Alpine v3.23 apache-ant 1.10.11-r0 —
Alpine v3.22 apache-ant 1.10.11-r0 —
Alpine v3.21 apache-ant 1.10.11-r0 —
Alpine v3.20 apache-ant 1.10.11-r0 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 apache-ant 1.10.11-r0 —
Alpine v3.18 apache-ant 1.10.11-r0 —
Alpine v3.17 apache-ant 1.10.11-r0 —
Alpine v3.16 apache-ant 1.10.11-r0 —
Alpine v3.15 apache-ant 1.10.11-r0 —
Alpine v3.14 apache-ant 1.10.11-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 javapackages-bootstrap 1.14.0-2 —
Azure Linux 2 (CBL-Mariner) javapackages-bootstrap 1.5.0-6 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.ant:ant < 1.9.16 1.9.16 GHSA-q5r4-cfpx-h6fh
Maven org.apache.ant:ant >= 1.10.0, < 1.10.11 1.10.11 GHSA-q5r4-cfpx-h6fh

Advisories 8

References