cve.bz

CVE-2021-36373

5.5 mediumEPSS 2.5%Fix available

Medium (5.5). EPSS 2.5% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.ant:ant 1.10.11, 1.9.16.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
2.5% (unchanged from 2.5% a week ago; 2.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-130 Improper Handling of Length Parameter Inconsistency
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-36373 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-36373?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-36373?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-36373 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Antfrom Apache Ant 1.9.x through 1.9.15
Apache Software Foundation Apache Antfrom Apache Ant 1.10.x through 1.10.10

Fixed in

ProductFixed in
Apache Software Foundation Apache AntApache Ant

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-q5r4-cfpx-h6fhMavenorg.apache.ant:ant<1.9.161.9.16
GHSA-q5r4-cfpx-h6fhMavenorg.apache.ant:ant>=1.10.0 <1.10.111.10.11

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14ant1.10.11-1DEBIAN-CVE-2021-36373
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 6 moreantno fix listedUBUNTU-CVE-2021-36373
SUSELinux Enterprise Module for Development Tools 15 SP3, Linux Enterprise Real Time 15 SP2ant, ant-antlr, ant-junit1.10.7-150200.4.6.1SUSE-SU-2022:1418-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5ant1.9.4-3.9.1SUSE-SU-2022:1417-1
SUSELinux Enterprise Software Development Kit 12 SP5ant, ant-antlr1.9.4-3.9.1SUSE-SU-2022:1417-1
openSUSELeap 15.3, Leap 15.4ant, ant-antlr, ant-junit and 1 more1.10.7-150200.4.6.1SUSE-SU-2022:1418-1
openSUSETumbleweedant1.10.12-1.1openSUSE-SU-2024:11688-1
Alpinev3.14, v3.15, v3.16 and 8 moreapache-ant1.10.11-r0ALPINE-CVE-2021-36373
Azure Linux2javapackages-bootstrap1.5.0-6AZL-25953
Azure Linux3javapackages-bootstrap1.14.0-2AZL-34808

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

OpenShift Container Platform 4 (OCP) ships affected version of Apache Ant in the ose-metering-hive container, however the metering operator is deprecated since 4.6[1]. This issue is not currently planned to be addressed in future updates and hence ose-metering-hive container has been marked as 'will not fix'.

[1] https://docs.openshift.com/container-platform/4.6/metering/metering-about-metering.html

ProductPackageStateAdvisory
RHPAM 7.13.0 asyncantFixed 2022-08-04RHSA-2022:5903
Red Hat BPM Suite 6antOut of support scope
Red Hat Enterprise Linux 6antOut of support scope
Red Hat Enterprise Linux 7antOut of support scope
Red Hat Enterprise Linux 8ant:1.10/antFix deferred
Red Hat Enterprise Linux 9antWill not fix
Red Hat Fuse 7antFix deferred
Red Hat Integration Camel K 1antFix deferred
Red Hat JBoss BRMS 6antOut of support scope
Red Hat JBoss Data Virtualization 6antNot affected
Red Hat JBoss Enterprise Application Platform 6antNot affected
Red Hat JBoss Fuse 6antOut of support scope
Red Hat JBoss Fuse Service Works 6antNot affected
Red Hat JBoss Operations Network 3antNot affected
Red Hat OpenShift Container Platform 3.11jenkinsFix deferred
Red Hat OpenShift Container Platform 4jenkinsWill not fix
Red Hat OpenShift Container Platform 4openshift4/ose-metering-hiveWill not fix
Red Hat Software Collectionsrh-maven36-antFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-36373.

Attack patterns (CAPEC)

  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON