CVE-2020-1945
Vulnerability in n/a Apache Ant
Check your servers for CVE-2020-1945
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2020-1945 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.90%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 60.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
Apache Ant
n/a
|
affected Apache Ant 1.1 to 1.9.14 and 1.10.0 to 1.10.7
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2020-1945 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2020-1945RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2020-1945Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2020-1945
trivy image --scanners vuln IMAGE | grep CVE-2020-1945
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- USN-4380-1 usn.ubuntu.com · vendor advisory
- FEDORA-2020-52741b0a49 lists.fedoraproject.org · vendor advisory
- FEDORA-2020-7f07da3fef lists.fedoraproject.org · vendor advisory
- openSUSE-SU-2020:1022 lists.opensuse.org · vendor advisory
- GLSA-202007-34 security.gentoo.org · vendor advisory
Other references
- [creadur-dev] 20200518 [jira] [Created] (RAT-269) Fix CVE-2020-1945: Apache Ant insecure temporary file… lists.apache.org · mailing list
- [creadur-commits] 20200518 [creadur-rat] 03/03: RAT-269: Update Apache ANT to fix CVE-2020-1945 lists.apache.org · mailing list
- [creadur-commits] 20200518 [creadur-rat] branch master updated: RAT-269: Update Apache ANT to fix CVE-2020-1945 lists.apache.org · mailing list
- [creadur-dev] 20200518 [jira] [Closed] (RAT-269) Fix CVE-2020-1945: Apache Ant insecure temporary file vulnerability… lists.apache.org · mailing list
- [creadur-dev] 20200518 [jira] [Commented] (RAT-269) Fix CVE-2020-1945: Apache Ant insecure temporary file… lists.apache.org · mailing list
- [creadur-dev] 20200518 [jira] [Assigned] (RAT-269) Fix CVE-2020-1945: Apache Ant insecure temporary file… lists.apache.org · mailing list
- [groovy-notifications] 20200522 [jira] [Closed] (GROOVY-9552) Bump Ant versions to address: [CVE-2020-1945] Apache… lists.apache.org · mailing list
- [hive-dev] 20200530 [jira] [Created] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file… lists.apache.org · mailing list
- [hive-issues] 20200530 [jira] [Assigned] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file… lists.apache.org · mailing list
- [hive-issues] 20200530 [jira] [Updated] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file… lists.apache.org · mailing list
- [hive-issues] 20200530 [jira] [Commented] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file… lists.apache.org · mailing list
- [hive-issues] 20200621 [jira] [Commented] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file… lists.apache.org · mailing list
35 more
- [creadur-dev] 20200703 [jira] [Commented] (RAT-269) Fix CVE-2020-1945: Apache Ant insecure temporary file… lists.apache.org · mailing list
- https://www.oracle.com/security-alerts/cpujul2020.html oracle.com
- https://lists.apache.org/thread.html/r8e592bbfc016a5dbe2a8c0e81ff99682b9c78c453621b82c14e7b75e%40%3Cdev.ant.apache.org%3E lists.apache.org
- [db-torque-dev] 20200715 svn commit: r1879896 - in /db/torque/torque4/trunk: ./ torque-ant-tasks/… lists.apache.org · mailing list
- [hive-issues] 20200804 [jira] [Commented] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file… lists.apache.org · mailing list
- [myfaces-commits] 20200826 [myfaces-tobago] branch tobago-2.x updated: update ant because of CVE-2020-1945 lists.apache.org · mailing list
- [ant-dev] 20200930 [CVE-2020-11979] Apache Ant insecure temporary file vulnerability lists.apache.org · mailing list
- [announce] 20200930 [CVE-2020-11979] Apache Ant insecure temporary file vulnerability lists.apache.org · mailing list
- [ant-user] 20200930 [CVE-2020-11979] Apache Ant insecure temporary file vulnerability lists.apache.org · mailing list
- [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 lists.apache.org · mailing list
- [creadur-dev] 20200930 [jira] [Created] (RAT-274) Update to latest Ant in order to fix CVE-2020-11979 lists.apache.org · mailing list
- [oss-security] 20200930 [CVE-2020-11979] Apache Ant insecure temporary file vulnerability openwall.com · mailing list
- [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 lists.apache.org · mailing list
- [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 lists.apache.org · mailing list
- [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 lists.apache.org · mailing list
- [creadur-dev] 20201006 [jira] [Updated] (RAT-274) Update to at least Ant 1.10.8/1.9.15 in order to fix… lists.apache.org · mailing list
- [creadur-dev] 20201006 [jira] [Resolved] (RAT-274) Update to at least Ant 1.10.8/1.9.15 in order to fix… lists.apache.org · mailing list
- https://www.oracle.com/security-alerts/cpuoct2020.html oracle.com
- [hive-issues] 20201022 [jira] [Commented] (HIVE-23583) Fix CVE-2020-1945: Apache Ant insecure temporary file… lists.apache.org · mailing list
- [groovy-notifications] 20201126 [jira] [Updated] (GROOVY-9552) Bump Ant versions to address: [CVE-2020-1945] Apache… lists.apache.org · mailing list
- [groovy-notifications] 20201126 [jira] [Comment Edited] (GROOVY-9552) Bump Ant versions to address: [CVE-2020-1945]… lists.apache.org · mailing list
- [groovy-commits] 20201126 [groovy] branch GROOVY_2_4_X updated: GROOVY-9552: Bump Ant versions to address… lists.apache.org · mailing list
- [groovy-users] 20201205 [SECURITY] CVE-2020-17521: Apache Groovy Information Disclosure lists.apache.org · mailing list
- [groovy-dev] 20201205 [SECURITY] CVE-2020-17521: Apache Groovy Information Disclosure lists.apache.org · mailing list
- [oss-security] 20201206 [CVE-2020-17521]: Apache Groovy Information Disclosure openwall.com · mailing list
- [announce] 20201205 [SECURITY] CVE-2020-17521: Apache Groovy Information Disclosure lists.apache.org · mailing list
- [groovy-notifications] 20201207 [jira] [Closed] (GROOVY-9824) CVE-2020-17521 Apache Groovy Information Disclosure lists.apache.org · mailing list
- [myfaces-commits] 20201211 [myfaces-tobago] 02/22: update ant because of CVE-2020-1945 lists.apache.org · mailing list
- https://www.oracle.com/security-alerts/cpujan2021.html oracle.com
- [creadur-dev] 20210419 [jira] [Commented] (RAT-274) Update to at least Ant 1.10.8/1.9.15 in order to fix… lists.apache.org · mailing list
- https://www.oracle.com/security-alerts/cpuApr2021.html oracle.com
- [creadur-dev] 20210621 [jira] [Commented] (RAT-274) Update to at least Ant 1.10.8/1.9.15 in order to fix… lists.apache.org · mailing list
- https://www.oracle.com//security-alerts/cpujul2021.html oracle.com
- https://www.oracle.com/security-alerts/cpuoct2021.html oracle.com
- https://www.oracle.com/security-alerts/cpujan2022.html oracle.com
Source: the record CVE-2020-1945 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse