CVE-2020-11979
Code injection in Apache Ant
Description
As mitigation for CVE-2020-1945 Apache Ant 1.10.8 changed the permissions of temporary files it created so that only the current user was allowed to access them. Unfortunately the fixcrlf task deleted the temporary file and created a new one without said protection, effectively nullifying the effort. This would still allow an attacker to inject modified source files into the build process.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.ant » ant | < 1.10.9 | 1.10.9 |
Blast radius
63% of the dependent artifacts (17,832) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 65,032 |
| 2 hops | 333,567 |
| 3 hops | 490,683 |
| 4 hops | 604,994 |
| 5 hops | 343,887 |
| 6 hops | 101,290 |
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
- org.freemarker » freemarker3,450 usages
- org.codehaus.mojo » cobertura-maven-plugin3,365 usages
- org.spockframework » spock-core3,338 usages
- com.github.spotbugs » spotbugs-maven-plugin3,264 usages
- org.apache.spark » spark-sql3,174 usages
- org.clojure » clojurescript3,073 usages
- org.codehaus.mojo » findbugs-maven-plugin2,938 usages
- org.codehaus.groovy » groovy2,934 usages
- org.apache.spark » spark-core2,899 usages
- cglib » cglib2,438 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
- Webhttps://github.com/gradle/gradle/security/advisories/GHSA-j45w-qrgf-25vm
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2020-11979
- Webhttps://github.com/apache/ant/commit/87ac51d3c22bcf7cfd0dc07cb0bd04a496e0d428
- Webhttps://www.oracle.com/security-alerts/cpuoct2021.html
- Webhttps://www.oracle.com/security-alerts/cpujan2022.html
- Webhttps://www.oracle.com/security-alerts/cpujan2021.html
- Webhttps://www.oracle.com/security-alerts/cpuapr2022.html
- Webhttps://www.oracle.com/security-alerts/cpuApr2021.html
- Webhttps://www.oracle.com//security-alerts/cpujul2021.html
- Webhttps://security.gentoo.org/glsa/202011-18
- Webhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U3NRQQ7ECII4ZNGW7GBC225LVYMPQEKB
- Webhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DYBRN5C2RW7JRY75IB7Q7ZVKZCHWAQWS
- Webhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AALW42FWNQ35F7KB3JVRC6NBVV7AAYYI
- Webhttps://lists.apache.org/thread.html/rc3c8ef9724b5b1e171529b47f4b35cb7920edfb6e917fa21eb6c64ea%40%3Cdev.ant.apache.org%3E
- Webhttps://lists.apache.org/thread.html/rbfe9ba28b74f39f46ec1bbbac3bef313f35017cf3aac13841a84483a@%3Cdev.creadur.apache.org%3E
- Webhttps://lists.apache.org/thread.html/raaeddc41da8f3afb1cb224876084a45f68e437a0afd9889a707e4b0c@%3Cdev.creadur.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r5e1cdd79f019162f76414708b2092acad0a6703d666d72d717319305@%3Cdev.creadur.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r4ca33fad3fb39d130cda287d5a60727d9e706e6f2cf2339b95729490@%3Cdev.creadur.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r2306b67f20c24942b872b0a41fbdc9330e8467388158bcd19c1094e0@%3Cdev.creadur.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r1dc8518dc99c42ecca5ff82d0d2de64cd5d3a4fa691eb9ee0304781e@%3Cdev.creadur.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r107ea1b1a7a214bc72fe1a04207546ccef542146ae22952e1013b5cc@%3Cdev.creadur.apache.org%3E
- Packagehttps://github.com/apache/ant
