Every CVE Search/ Get API key

CVE-2020-1945

Sensitive Data Exposure in Apache Ant

6.3 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
High
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
None

Exploit likelihood

1.77%Down 21.4 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 6.3

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.

Record
CVE-2020-1945
CVSS 3.1
6.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
CVSS 2.0
3.3 LowAV:L/AC:M/Au:N/C:P/I:P/A:N
Weakness
CWE-668
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2020-1945
Updated
2026-11-02
EUVDEUVD-2020-0743 No score

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.

Record
EUVD-2020-0743
Updated
2026-11-03
GitHub AdvisoriesGHSA-4p6w-m9wc-c9c9 6.3

Sensitive Data Exposure in Apache Ant

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.

Record
GHSA-4p6w-m9wc-c9c9
CVSS 3.1
6.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-200, CWE-668
Updated
2026-11-02
OSVALPINE-CVE-2020-1945 6.3

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.

Record
ALPINE-CVE-2020-1945
CVSS 3.1
6.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Updated
2026-11-03
OSVBELL-CVE-2020-1945 6.3

CVE-2020-1945 does not affect BellSoft software

Record
BELL-CVE-2020-1945
CVSS 3.1
6.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Updated
2026-11-02
Show 15 moreShow less
OSV 6.3

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.

Record
CVE-2020-1945
CVSS 3.1
6.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Updated
2026-11-02
OSVDEBIAN-CVE-2020-1945 6.3

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.

Record
DEBIAN-CVE-2020-1945
CVSS 3.1
6.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Updated
2026-11-02
OSVGHSA-4p6w-m9wc-c9c9 6.3

Sensitive Data Exposure in Apache Ant

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.

Record
GHSA-4p6w-m9wc-c9c9
CVSS 3.1
6.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-200, CWE-668
Updated
2026-11-02
OSVRHLW-2026-5665ff8f68d7cabb 7.5

Lightwell Security Advisory: ant 1.8.2.rhlw-00006

Red Hat Lightwell has released org.apache.ant:ant 1.8.2.rhlw-00006 with backported fixes for CVE-2020-11979 and CVE-2020-1945.

CVE-2020-11979: 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.

CVE-2020-1945: 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.

This patched artifact is a drop-in replacement for org.apache.ant:ant 1.8.2 from Maven Central.

Record
RHLW-2026-5665ff8f68d7cabb
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVRHSA-2021:0423 8.0

Red Hat Security Advisory: OpenShift Container Platform 4.6.17 security and packages update

Record
RHSA-2021:0423
CVSS 3.1
8.0 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2021:0429 8.0

Red Hat Security Advisory: OpenShift Container Platform 4.5.33 packages and security update

Record
RHSA-2021:0429
CVSS 3.1
8.0 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2021:0637 8.0

Red Hat Security Advisory: OpenShift Container Platform 3.11.394 bug fix and security update

Record
RHSA-2021:0637
CVSS 3.1
8.0 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2020-1945 6.3

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.

Record
UBUNTU-CVE-2020-1945
CVSS 3.1
6.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Updated
2026-11-02
OSVMGASA-2020-0237 No score

Updated ant packages fix security vulnerability

Updated ant packages fix security vulnerability:

Apache Ant 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 (CVE-2020-1945).

The ant package has been updated to version 1.10.8 to fix this issue and other bugs.

Record
MGASA-2020-0237
Updated
2026-11-02
OSVopenSUSE-SU-2020:1022-1 No score

Security update for ant

This update for ant fixes the following issues:

  • CVE-2020-1945: Fixed an inseure temorary file vulnerability which could have potentially leaked sensitive information (bsc#1171696).

This update was imported from the SUSE:SLE-15-SP2:Update update project.

Record
openSUSE-SU-2020:1022-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:10616-1 No score

ant-1.10.10-1.2 on GA media

These are all security issues fixed in the ant-1.10.10-1.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10616-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:11676-1 No score

junit-4.13.2-1.1 on GA media

These are all security issues fixed in the junit-4.13.2-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11676-1
Updated
2026-11-02
OSVSUSE-SU-2020:1944-1 No score

Security update for ant

This update for ant fixes the following issues:

  • CVE-2020-1945: Fixed an inseure temorary file vulnerability which could have potentially leaked sensitive information (bsc#1171696).
Record
SUSE-SU-2020:1944-1
Updated
2026-11-02
OSVSUSE-SU-2022:4022-1 No score

Security update for ant

This update for ant fixes the following issues:

  • CVE-2020-1945: Fixed insecure temporary file vulnerability (bsc#1171696).
  • CVE-2020-11979: Fixed issue introduced with fix for CVE-2020-1945 (bsc#1177180).
Record
SUSE-SU-2022:4022-1
Updated
2026-11-02
OSVUSN-4874-1 No score

ant vulnerability

It was discovered that Apache Ant created temporary files with insecure permissions. An attacker could use this vulnerability to read sensitive information leaked into /tmp, or potentially inject malicious code into a project that is built with Apache Ant.

Record
USN-4874-1
Updated
2026-11-02

Affected products

Show 39 moreShow less

Affected packages

Affected packages
PackageAffectedFixed
org.apache.ant:ant
Maven
1.1 up to 1.9.15
1.9.15
org.apache.ant:ant
Maven
1.10.0 up to 1.10.8
1.10.8
apache-ant
Alpine:v3.11
before 1.10.8-r0
1.10.8-r0
apache-ant
Alpine:v3.12
before 1.10.8-r0
1.10.8-r0
apache-ant
Alpine:v3.13
before 1.10.8-r0
1.10.8-r0
apache-ant
Alpine:v3.14
before 1.10.8-r0
1.10.8-r0
apache-ant
Alpine:v3.15
before 1.10.8-r0
1.10.8-r0
apache-ant
Alpine:v3.16
before 1.10.8-r0
1.10.8-r0
apache-ant
Alpine:v3.17
before 1.10.8-r0
1.10.8-r0
apache-ant
Alpine:v3.18
before 1.10.8-r0
1.10.8-r0
Show 52 moreShow less
Affected packages
PackageAffectedFixed
apache-ant
Alpine:v3.19
before 1.10.8-r0
1.10.8-r0
apache-ant
Alpine:v3.20
before 1.10.8-r0
1.10.8-r0
apache-ant
Alpine:v3.21
before 1.10.8-r0
1.10.8-r0
apache-ant
Alpine:v3.22
before 1.10.8-r0
1.10.8-r0
apache-ant
Alpine:v3.23
before 1.10.8-r0
1.10.8-r0
apache-ant
Alpine:v3.24
before 1.10.8-r0
1.10.8-r0
ant
Debian:12
before 1.10.8-1
1.10.8-1
ant
Debian:13
before 1.10.8-1
1.10.8-1
ant
Debian:14
before 1.10.8-1
1.10.8-1
org.apache.ant:ant
Maven
1.1 up to 1.9.15, plus listed versions
1.7.01.7.11.8.01.8.11.8.2
Show 17 moreShow less
1.8.31.8.41.9.01.9.11.9.101.9.111.9.121.9.131.9.141.9.21.9.31.9.41.9.51.9.61.9.71.9.81.9.9
1.9.15
org.apache.ant:ant
Maven
1.10.0 up to 1.10.8, plus listed versions
1.10.11.10.21.10.31.10.41.10.51.10.61.10.7
1.10.8
ant
Mageia:7
before 1.10.8-1.mga7
1.10.8-1.mga7
org.apache.ant:ant
Red Hat Lightwell:Maven
From an advisory covering 2 CVEs
before 1.8.2.rhlw-00006, plus listed versions
1.7.01.7.11.8.01.8.11.8.2
1.8.2.rhlw-00006
jenkins
Red Hat:openshift:4.6::el8
From an advisory covering 13 CVEs
before 0:2.263.3.1612434510-1.el8
0:2.263.3.1612434510-1.el8
conmon
Red Hat:openshift:4.5::el7
From an advisory covering 13 CVEs
before 2:2.0.21-1.rhaos4.5.el7
2:2.0.21-1.rhaos4.5.el7
jenkins
Red Hat:openshift:4.5::el7
From an advisory covering 13 CVEs
before 0:2.263.3.1612434332-1.el7
0:2.263.3.1612434332-1.el7
openshift
Red Hat:openshift:4.5::el7
From an advisory covering 13 CVEs
before 0:4.5.0-202102050524.p0.git.0.9229406.el7
0:4.5.0-202102050524.p0.git.0.9229406.el7
openshift-ansible
Red Hat:openshift:4.5::el7
From an advisory covering 13 CVEs
before 0:4.5.0-202102031005.p0.git.0.c6839a2.el7
0:4.5.0-202102031005.p0.git.0.c6839a2.el7
openshift-ansible-test
Red Hat:openshift:4.5::el7
From an advisory covering 13 CVEs
before 0:4.5.0-202102031005.p0.git.0.c6839a2.el7
0:4.5.0-202102031005.p0.git.0.c6839a2.el7
openshift-clients
Red Hat:openshift:4.5::el7
From an advisory covering 13 CVEs
before 0:4.5.0-202102051529.p0.git.3612.61b096a.el7
0:4.5.0-202102051529.p0.git.3612.61b096a.el7
openshift-clients-redistributable
Red Hat:openshift:4.5::el7
From an advisory covering 13 CVEs
before 0:4.5.0-202102051529.p0.git.3612.61b096a.el7
0:4.5.0-202102051529.p0.git.3612.61b096a.el7
openshift-hyperkube
Red Hat:openshift:4.5::el7
From an advisory covering 13 CVEs
before 0:4.5.0-202102050524.p0.git.0.9229406.el7
0:4.5.0-202102050524.p0.git.0.9229406.el7
conmon
Red Hat:openshift:4.5::el8
From an advisory covering 13 CVEs
before 2:2.0.21-1.rhaos4.5.el8
2:2.0.21-1.rhaos4.5.el8
machine-config-daemon
Red Hat:openshift:4.5::el8
From an advisory covering 13 CVEs
before 0:4.5.0-202102050524.p0.git.2594.ff3b8c0.el8
0:4.5.0-202102050524.p0.git.2594.ff3b8c0.el8
openshift
Red Hat:openshift:4.5::el8
From an advisory covering 13 CVEs
before 0:4.5.0-202102050524.p0.git.0.9229406.el8
0:4.5.0-202102050524.p0.git.0.9229406.el8
openshift-clients
Red Hat:openshift:4.5::el8
From an advisory covering 13 CVEs
before 0:4.5.0-202102051529.p0.git.3612.61b096a.el8
0:4.5.0-202102051529.p0.git.3612.61b096a.el8
openshift-clients-redistributable
Red Hat:openshift:4.5::el8
From an advisory covering 13 CVEs
before 0:4.5.0-202102051529.p0.git.3612.61b096a.el8
0:4.5.0-202102051529.p0.git.3612.61b096a.el8
openshift-hyperkube
Red Hat:openshift:4.5::el8
From an advisory covering 13 CVEs
before 0:4.5.0-202102050524.p0.git.0.9229406.el8
0:4.5.0-202102050524.p0.git.0.9229406.el8
runc
Red Hat:openshift:4.5::el8
From an advisory covering 13 CVEs
before 0:1.0.0-72.rhaos4.5.giteadfc6b.el8
0:1.0.0-72.rhaos4.5.giteadfc6b.el8
runc-debuginfo
Red Hat:openshift:4.5::el8
From an advisory covering 13 CVEs
before 0:1.0.0-72.rhaos4.5.giteadfc6b.el8
0:1.0.0-72.rhaos4.5.giteadfc6b.el8
runc-debugsource
Red Hat:openshift:4.5::el8
From an advisory covering 13 CVEs
before 0:1.0.0-72.rhaos4.5.giteadfc6b.el8
0:1.0.0-72.rhaos4.5.giteadfc6b.el8
jenkins
Red Hat:openshift:3.11::el7
From an advisory covering 19 CVEs
before 0:2.263.3.1612433584-1.el7
0:2.263.3.1612433584-1.el7
jenkins-2-plugins
Red Hat:openshift:3.11::el7
From an advisory covering 19 CVEs
before 0:3.11.1612862361-1.el7
0:3.11.1612862361-1.el7
python-rsa
Red Hat:openshift:3.11::el7
From an advisory covering 19 CVEs
before 0:4.5-3.el7
0:4.5-3.el7
python2-rsa
Red Hat:openshift:3.11::el7
From an advisory covering 19 CVEs
before 0:4.5-3.el7
0:4.5-3.el7
ant
SUSE:Linux Enterprise Module for Development Tools 15 SP2
before 1.10.7-4.3.1
1.10.7-4.3.1
ant-antlr
SUSE:Linux Enterprise Module for Development Tools 15 SP2
before 1.10.7-4.3.1
1.10.7-4.3.1
ant-junit
SUSE:Linux Enterprise Module for Development Tools 15 SP2
before 1.10.7-4.3.1
1.10.7-4.3.1
ant
SUSE:Linux Enterprise Software Development Kit 12 SP5
From an advisory covering 2 CVEs
before 1.9.4-3.12.1
1.9.4-3.12.1
ant-antlr
SUSE:Linux Enterprise Software Development Kit 12 SP5
From an advisory covering 2 CVEs
before 1.9.4-3.12.3
1.9.4-3.12.3
ant
SUSE:Linux Enterprise Server 12 SP5
From an advisory covering 2 CVEs
before 1.9.4-3.12.1
1.9.4-3.12.1
ant
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
From an advisory covering 2 CVEs
before 1.9.4-3.12.1
1.9.4-3.12.1
ant
Ubuntu:Pro:14.04:LTS
before 1.9.3-2ubuntu0.1+esm1, plus listed versions
1.9.2-11.9.3-11.9.3-21.9.3-2build11.9.3-2ubuntu0.1
1.9.3-2ubuntu0.1+esm1
ant
Ubuntu:Pro:16.04:LTS
before 1.9.6-1ubuntu1.1+esm1, plus listed versions
1.9.6-1ubuntu11.9.6-1ubuntu1.1
1.9.6-1ubuntu1.1+esm1
ant
Ubuntu:Pro:18.04:LTS
before 1.10.5-3~18.04.1~esm1, plus listed versions
1.9.9-41.9.9-51.9.9-61.9.10-11.9.10-21.10.3-11.10.3-1ubuntu0.11.10.5-3~18.04
1.10.5-3~18.04.1~esm1
ant
Ubuntu:Pro:20.04:LTS
before 1.10.7-1ubuntu0.1~esm1, plus listed versions
1.10.6-11.10.7-1
1.10.7-1ubuntu0.1~esm1
ant
openSUSE:Leap 15.2
before 1.10.7-lp152.2.3.1
1.10.7-lp152.2.3.1
ant-antlr
openSUSE:Leap 15.2
before 1.10.7-lp152.2.3.1
1.10.7-lp152.2.3.1
ant-junit
openSUSE:Leap 15.2
before 1.10.7-lp152.2.3.1
1.10.7-lp152.2.3.1
ant-junit5
openSUSE:Leap 15.2
before 1.10.7-lp152.2.3.1
1.10.7-lp152.2.3.1
ant
openSUSE:Tumbleweed
From an advisory covering 3 CVEs
before 1.10.10-1.2
1.10.10-1.2
junit
openSUSE:Tumbleweed
before 4.13.2-1.1
4.13.2-1.1

History

History
RecordedChangedSources
affected, facts
affected, aliases, referencesOSV
aliases, productsEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2020-1945 is a medium vulnerability (CVSS 6.3) in Apache Ant, published May 14, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.77%, the 78th percentile. Fixed in org.apache.ant:ant 1.9.15.

References

Show 194 moreShow less
This page doesn't list everything

Left out here: 16 references. The JSON record has them.

MoveEnter Open