{"id":"CVE-2021-36374","published":"2021-07-14T06:20:12Z","modified":"2024-08-04T00:54:51Z","title":"Apache Ant ZIP, and ZIP based, archive denial of service vulerability","vendor":"Apache","product":"Apache Ant","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02642,"percentile":0.85951,"provenance":"source"},"cwes":[{"id":"CWE-130","name":"Improper Handling of Length Parameter Inconsistency"}],"references":[{"url":"https://ant.apache.org/security.html","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/rdd5412a5b9a25aed2a02c3317052d38a97128314d50bc1ed36e81d38%40%3Cuser.ant.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/r27919fd4db07c487239c1d9771f480d89ce5ee2750aa9447309b709a%40%3Ccommits.groovy.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r544c9e8487431768465b8b2d13982c75123109bd816acf839d46010d%40%3Ccommits.groovy.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rad36f470647c5a7c02dd78c9973356d2840766d132b597b6444e373a%40%3Cnotifications.groovy.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rf4bb79751a02889623195715925e4fd8932dd3c97e0ade91395a96c6%40%3Cdev.myfaces.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20210819-0007/","tags":["x_refsource_CONFIRM"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC"]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":17.19}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Ant","versions":[">= 1.4, < Apache Ant*",">= Apache Ant 1.9.x, <= 1.9.15",">= Apache Ant 1.10.x, <= 1.10.10"]}],"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.ant:ant","vulnerableRanges":[">=1.9.0, <1.9.16",">=1.10.0, <1.10.11"],"patched":["1.9.16","1.10.11"],"from":["GHSA-5v34-g2px-j4fw"],"provenance":"source"}],"summary":{"text":"The flaw lies in Apache Ant's handling of ZIP archives and ZIP-based formats such as JAR and many office files, where a crafted input can make the build allocate large amounts of memory. An attacker who can supply such an archive to an Apache Ant build can trigger an out-of-memory error even from a small input, disrupting that build.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:55Z"},"euvd":{"id":"EUVD-2021-1582","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-1945","published":"2020-05-14","fixed":"1.10.8","kev":false,"link":{"from":"CVE-2020-1945","to":"CVE-2021-36374","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.ant:ant","fromFixed":"1.9.15","toFixed":"1.9.16","daysApart":426}]}},{"cve":"CVE-2020-11979","published":"2020-10-01","fixed":"1.10.9","kev":false,"link":{"from":"CVE-2020-11979","to":"CVE-2021-36374","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.ant:ant","fromFixed":"1.10.9","toFixed":"1.10.11","daysApart":286}]}},{"cve":"CVE-2021-36373","published":"2021-07-14","fixed":"1.10.11","kev":false},{"cve":"CVE-2021-36374","published":"2021-07-14","fixed":"1.10.11","kev":false}],"package":"Maven:org.apache.ant:ant"}}