Home / Apache Software Foundation / Apache Ant / CVE-2021-36374
CVE-2021-36374: is it exploited, and which versions of Apache Software Foundation Apache Ant are affected and fixed?
CVE-2021-36374 is an improper Handling of Length Parameter Inconsistency vulnerability in Apache Software Foundation Apache Ant. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: org.apache.ant:ant from 1.9.0 before 1.9.16 and org.apache.ant:ant from 1.10.0 before 1.10.11 (GitHub advisory GHSA-5v34-g2px-j4fw). Fixed in 1.9.16 and 1.10.11 (GitHub advisory GHSA-5v34-g2px-j4fw). Severity: Medium (5.5, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 28, 2026, 20:08 UTC and NVD November 19, 2026, 07:56 UTC.
What is CVE-2021-36374?
Apache 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.
From the CVE record by apache, last updated August 4, 2024, 00:54 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache Ant | from 1.4 through every Apache Ant version from Apache Ant 1.9.x through 1.9.15 from Apache Ant 1.10.x through 1.10.10 |
As the CVE record by apache states it, last updated August 4, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.apache.ant:ant | >= 1.9.0, < 1.9.16 | 1.9.16 | GHSA-5v34-g2px-j4fw |
| Maven | org.apache.ant:ant | >= 1.10.0, < 1.10.11 | 1.10.11 | GHSA-5v34-g2px-j4fw |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 1, 2024. Summary: Improper Handling of Length Parameter Inconsistency in Apache Ant.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | ant | from 1.9.0 before 1.9.16 | application |
| apache | ant | from 1.10.0 before 1.10.11 | application |
| oracle | agile engineering data management | 6.2.1.0 | application |
| oracle | agile product lifecycle management | 9.3.6 | application |
| oracle | banking trade finance | 14.5 | application |
| oracle | banking treasury management | 14.5 | application |
| oracle | communications cloud native core automated test suite | 1.9.0 | application |
| oracle | communications cloud native core binding support function | 1.11.0 | application |
| oracle | communications diameter intelligence hub | from 8.0.0 through 8.1.0 | application |
| oracle | communications diameter intelligence hub | from 8.2.0 through 8.2.3 | application |
| oracle | communications order and service management | 7.3 | application |
| oracle | communications order and service management | 7.4 | application |
| oracle | communications unified inventory management | 7.3.0 | application |
| oracle | communications unified inventory management | 7.4.0 | application |
| oracle | communications unified inventory management | 7.4.1 | application |
| oracle | communications unified inventory management | 7.4.2 | application |
| oracle | communications unified inventory management | 7.5.0 | application |
| oracle | enterprise repository | 11.1.1.7.0 | application |
| oracle | financial services analytical applications infrastructure | from 8.0.6 through 8.1.1 | application |
| oracle | health sciences information manager | from 3.0.1 through 3.0.5 | application |
| oracle | health sciences information manager | 3.0.0.1 | application |
| oracle | insurance policy administration | from 11.0 through 11.3.1 | application |
| oracle | primavera gateway | from 17.12.0 through 17.12.11 | application |
| oracle | primavera gateway | from 18.8.0 through 18.8.12 | application |
| oracle | primavera gateway | from 19.12.0 through 19.12.11 | application |
NVD analysis (status Modified), last modified August 25, 2026, 16:28 UTC.
How severe is CVE-2021-36374?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.5 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | NVD |
| Medium 4.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-36374 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.64% probability of exploitation activity in the next 30 days, percentile 86.1 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-130 Improper Handling of Length Parameter Inconsistency
Is there a workaround? (from the CVE record)
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.
Where are the vendor advisories and references?
- https://ant.apache.org/security.html x_refsource_MISC
- https://lists.apache.org/thread.html/rdd5412a5b9a25aed2a02c3317052d38a97128314d50bc1ed36e81d38%40%3Cuser.ant.apache.org%3E x_refsource_MISC
- [groovy-commits] 20210714 [groovy] 08/09: GROOVY-10169: Bump Ant version to 1.10.11 (incorporates CVE-2021-36373 and CVE-2021-36374) mailing-list, x_refsource_MLIST
- [groovy-commits] 20210715 [groovy] 02/07: GROOVY-10169: Bump Ant version to 1.10.11 (incorporates CVE-2021-36373 and CVE-2021-36374) mailing-list, x_refsource_MLIST
- [groovy-notifications] 20210715 [jira] [Resolved] (GROOVY-10169) Bump Ant version to 1.10.11 (incorporates CVE-2021-36373 and CVE-2021-36374) mailing-list, x_refsource_MLIST
- [myfaces-dev] 20210830 [GitHub] [myfaces-tobago] lofwyr14 opened a new pull request #1215: build: CVE fix mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpuoct2021.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210819-0007/ x_refsource_CONFIRM
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC
Who found and reported it?
- This issue is similar to https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-36090 present in Apache Commons Compress which has been detected by OSS Fuzz. (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- July 12, 2021
- Published
- July 14, 2021, 06:20 UTC
- CVE record updated
- August 4, 2024, 00:54 UTC by apache
- NVD
- Modified, last modified August 25, 2026, 16:28 UTC
- Last checked
- CVE list November 28, 2026, 20:08 UTC; NVD November 19, 2026, 07:56 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache Ant?
- Sep 7, 2026CVE-2026-78254 Apache Software Foundation Apache Ant: path traversal
- Jul 14, 2021CVE-2021-36373 Apache Software Foundation Apache Ant: improper Handling of Length Parameter Inconsistency
Questions about CVE-2021-36374
Is CVE-2021-36374 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 2.64% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache Ant are affected by CVE-2021-36374?
org.apache.ant:ant from 1.9.0 before 1.9.16 and org.apache.ant:ant from 1.10.0 before 1.10.11, per the GitHub advisory GHSA-5v34-g2px-j4fw. The tables above give every range the sources list.
Which version fixes CVE-2021-36374?
1.9.16 and 1.10.11, per the GitHub advisory GHSA-5v34-g2px-j4fw. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-36374?
Medium (5.5, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-36374?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.