Vulnerability · Published May 14, 2020 · Assigned by apache
CVE-2020-1945
Medium 6.3
In plain English
A medium-severity security flaw in Apache Ant. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)6.3Medium
Exploit odds (30 days)1.8%top 21.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
Apache Ant 1.1 to 1.9.14 and 1.10.0 to 1.10.7 uses the default temporary directory identified by the Java system property java.io.tmpdir for several tasks and may thus leak sensitive information. The fixcrlf and replaceregexp tasks also copy files from the temporary directory back into the build tree allowing an attacker to inject modified source files into the build process.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | apache-ant | 1.10.8-r0 | ALPINE-CVE-2020-1945 |
| Alpine:v3.21 | apache-ant | 1.10.8-r0 | ALPINE-CVE-2020-1945 |
| Alpine:v3.22 | apache-ant | 1.10.8-r0 | ALPINE-CVE-2020-1945 |
| Alpine:v3.23 | apache-ant | 1.10.8-r0 | ALPINE-CVE-2020-1945 |
| Alpine:v3.24 | apache-ant | 1.10.8-r0 | ALPINE-CVE-2020-1945 |
| Debian:12 | ant | 1.10.8-1 | DEBIAN-CVE-2020-1945 |
| Debian:13 | ant | 1.10.8-1 | DEBIAN-CVE-2020-1945 |
| Debian:14 | ant | 1.10.8-1 | DEBIAN-CVE-2020-1945 |
| Maven | org.apache.ant:ant | 1.10.8 | GHSA-4p6w-m9wc-c9c9 |
| Maven | org.apache.ant:ant | 1.9.15 | GHSA-4p6w-m9wc-c9c9 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | Apache Ant | Apache Ant 1.1 to 1.9.14 and 1.10.0 to 1.10.7 |
References
- [creadur-dev] 20200518 [jira] [Created] (RAT-269) Fix CVE-2020-1945: Apache Ant insecure temporary file vulnerability by updating to latest ANT mailing-list, x_refsource_MLIST
- [creadur-commits] 20200518 [creadur-rat] 03/03: RAT-269: Update Apache ANT to fix CVE-2020-1945 mailing-list, x_refsource_MLIST
- [creadur-commits] 20200518 [creadur-rat] branch master updated: RAT-269: Update Apache ANT to fix CVE-2020-1945 mailing-list, x_refsource_MLIST
- [creadur-dev] 20200518 [jira] [Closed] (RAT-269) Fix CVE-2020-1945: Apache Ant insecure temporary file vulnerability by updating to latest ANT mailing-list, x_refsource_MLIST
- [creadur-dev] 20200518 [jira] [Commented] (RAT-269) Fix CVE-2020-1945: Apache Ant insecure temporary file vulnerability by updating to latest ANT mailing-list, x_refsource_MLIST
- [creadur-dev] 20200518 [jira] [Assigned] (RAT-269) Fix CVE-2020-1945: Apache Ant insecure temporary file vulnerability by updating to latest ANT mailing-list, x_refsource_MLIST
- [groovy-notifications] 20200522 [jira] [Closed] (GROOVY-9552) Bump Ant versions to address: [CVE-2020-1945] Apache Ant insecure temporary file vulnerability mailing-list, x_refsource_MLIST
- [hive-dev] 20200530 [jira] [Created] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file vulnerability by updating to latest ANT mailing-list, x_refsource_MLIST
- [hive-issues] 20200530 [jira] [Assigned] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file vulnerability by updating to latest ANT mailing-list, x_refsource_MLIST
- [hive-issues] 20200530 [jira] [Updated] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file vulnerability by updating to latest ANT mailing-list, x_refsource_MLIST
- [hive-issues] 20200530 [jira] [Commented] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file vulnerability by updating to latest ANT mailing-list, x_refsource_MLIST
- USN-4380-1 vendor-advisory, x_refsource_UBUNTU
- FEDORA-2020-52741b0a49 vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-7f07da3fef vendor-advisory, x_refsource_FEDORA
- [hive-issues] 20200621 [jira] [Commented] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file vulnerability by updating to latest ANT mailing-list, x_refsource_MLIST
- [creadur-dev] 20200703 [jira] [Commented] (RAT-269) Fix CVE-2020-1945: Apache Ant insecure temporary file vulnerability by updating to latest ANT mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpujul2020.html x_refsource_MISC
- https://lists.apache.org/thread.html/r8e592bbfc016a5dbe2a8c0e81ff99682b9c78c453621b82c14e7b75e%40%3Cdev.ant.apache.org%3E x_refsource_MISC
- [db-torque-dev] 20200715 svn commit: r1879896 - in /db/torque/torque4/trunk: ./ torque-ant-tasks/ torque-ant-tasks/src/test/java/org/apache/torque/ant/task/ torque-generator/src/main/java/org/apache/torque/generator/control/ torque-generator/src/main/java/org/apache/torque/gen... mailing-list, x_refsource_MLIST
- openSUSE-SU-2020:1022 vendor-advisory, x_refsource_SUSE
- GLSA-202007-34 vendor-advisory, x_refsource_GENTOO
- [hive-issues] 20200804 [jira] [Commented] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file vulnerability by updating to latest ANT mailing-list, x_refsource_MLIST
- [myfaces-commits] 20200826 [myfaces-tobago] branch tobago-2.x updated: update ant because of CVE-2020-1945 mailing-list, x_refsource_MLIST
- [ant-dev] 20200930 [CVE-2020-11979] Apache Ant insecure temporary file vulnerability mailing-list, x_refsource_MLIST
- [announce] 20200930 [CVE-2020-11979] Apache Ant insecure temporary file vulnerability mailing-list, x_refsource_MLIST
- [ant-user] 20200930 [CVE-2020-11979] Apache Ant insecure temporary file vulnerability mailing-list, x_refsource_MLIST
- [creadur-dev] 20200930 [jira] [Updated] (RAT-274) Update to at least Ant 1.10.8/1.9.15 in order to fix CVE-2020-11979 mailing-list, x_refsource_MLIST
- [creadur-dev] 20200930 [jira] [Created] (RAT-274) Update to latest Ant in order to fix CVE-2020-11979 mailing-list, x_refsource_MLIST
- [oss-security] 20200930 [CVE-2020-11979] Apache Ant insecure temporary file vulnerability mailing-list, x_refsource_MLIST
- [creadur-dev] 20201006 [jira] [Commented] (RAT-274) Update to at least Ant 1.10.8/1.9.15 in order to fix CVE-2020-11979 mailing-list, x_refsource_MLIST
- [creadur-dev] 20201006 [jira] [Assigned] (RAT-274) Update to at least Ant 1.10.8/1.9.15 in order to fix CVE-2020-11979 mailing-list, x_refsource_MLIST
- [creadur-dev] 20201006 [jira] [Updated] (RAT-274) Update to at least Ant 1.10.8/1.9.15 in order to fix CVE-2020-11979 mailing-list, x_refsource_MLIST
- [creadur-dev] 20201006 [jira] [Updated] (RAT-274) Update to at least Ant 1.10.8/1.9.15 in order to fix CVE-2020-11979 / raise compiler level to JDK8 mailing-list, x_refsource_MLIST
- [creadur-dev] 20201006 [jira] [Resolved] (RAT-274) Update to at least Ant 1.10.8/1.9.15 in order to fix CVE-2020-11979 / raise compiler level to JDK8 mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpuoct2020.html x_refsource_MISC
- [hive-issues] 20201022 [jira] [Commented] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file vulnerability by updating to latest ANT mailing-list, x_refsource_MLIST
- [groovy-notifications] 20201126 [jira] [Updated] (GROOVY-9552) Bump Ant versions to address: [CVE-2020-1945] Apache Ant insecure temporary file vulnerability mailing-list, x_refsource_MLIST
- [groovy-notifications] 20201126 [jira] [Comment Edited] (GROOVY-9552) Bump Ant versions to address: [CVE-2020-1945] Apache Ant insecure temporary file vulnerability mailing-list, x_refsource_MLIST
- [groovy-commits] 20201126 [groovy] branch GROOVY_2_4_X updated: GROOVY-9552: Bump Ant versions to address: [CVE-2020-1945] Apache Ant insecure temporary file vulnerability mailing-list, x_refsource_MLIST
- [groovy-users] 20201205 [SECURITY] CVE-2020-17521: Apache Groovy Information Disclosure mailing-list, x_refsource_MLIST