CVE-2021-36374
Improper Handling of Length Parameter Inconsistency in Apache Ant
Description
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.ant » ant | >= 1.9.0, < 1.9.16>= 1.10.0, < 1.10.11 | 1.9.16, 1.10.11 |
Blast radius
53% of the dependent artifacts (6,632) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 46,543 |
| 2 hops | 258,526 |
| 3 hops | 214,872 |
| 4 hops | 101,609 |
| 5 hops | 60,442 |
| 6 hops | 25,521 |
Most used dependents
- org.scala-lang » scala-library41,867 usages
- org.apache.maven.plugins » maven-antrun-plugin15,157 usages
- org.testng » testng13,317 usages
- org.codehaus.groovy » groovy-all5,349 usages
- org.scala-lang » scala-reflect4,689 usages
- com.github.spotbugs » spotbugs-maven-plugin3,264 usages
- org.apache.spark » spark-sql3,174 usages
- org.codehaus.mojo » findbugs-maven-plugin2,938 usages
- org.apache.spark » spark-core2,899 usages
- cglib » cglib2,438 usages
- org.scala-lang » scala-compiler2,362 usages
- com.typesafe.scala-logging » scala-logging1,943 usages
- org.apache.tomcat.embed » tomcat-embed-core1,702 usages
- org.codehaus.gmavenplus » gmavenplus-plugin1,631 usages
- org.apache.kafka » kafka1,450 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-36374
- Webhttps://ant.apache.org/security.html
- Webhttps://lists.apache.org/thread.html/r27919fd4db07c487239c1d9771f480d89ce5ee2750aa9447309b709a@%3Ccommits.groovy.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r544c9e8487431768465b8b2d13982c75123109bd816acf839d46010d@%3Ccommits.groovy.apache.org%3E
- Webhttps://lists.apache.org/thread.html/rad36f470647c5a7c02dd78c9973356d2840766d132b597b6444e373a@%3Cnotifications.groovy.apache.org%3E
- Webhttps://lists.apache.org/thread.html/rdd5412a5b9a25aed2a02c3317052d38a97128314d50bc1ed36e81d38%40%3Cuser.ant.apache.org%3E
- Webhttps://lists.apache.org/thread.html/rf4bb79751a02889623195715925e4fd8932dd3c97e0ade91395a96c6@%3Cdev.myfaces.apache.org%3E
- Webhttps://security.netapp.com/advisory/ntap-20210819-0007
- Webhttps://www.oracle.com/security-alerts/cpuapr2022.html
- Webhttps://www.oracle.com/security-alerts/cpujan2022.html
- Webhttps://www.oracle.com/security-alerts/cpujul2022.html
- Webhttps://www.oracle.com/security-alerts/cpuoct2021.html
