Skip to content
OpenAdvisories
Medium · 6.3 CVE-2020-1945 EUVD-2020-0743GHSA-4p6w-m9wc-c9c9

Sensitive Data Exposure in Apache Ant

Published May 14, 2020 · Updated Aug 4, 2024 · Assigned by apache

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 products

VendorProductAffectedFixed
— Apache Ant Apache Ant 1.1 to 1.9.14 and 1.10.0 to 1.10.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ant 1.10.8-1 —
Debian 13 ant 1.10.8-1 —
Debian 12 ant 1.10.8-1 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS ant 1.10.7-1ubuntu0.1~esm1 USN-4874-1
Ubuntu Pro 18.04 LTS ant 1.10.5-3~18.04.1~esm1 USN-4874-1
Ubuntu Pro 16.04 LTS ant 1.9.6-1ubuntu1.1+esm1 USN-4874-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS ant 1.9.3-2ubuntu0.1+esm1 USN-4874-1
ReleasePackageFixed inAdvisory
Red Hat OpenShift 4 conmon 2:2.0.21-1.rhaos4.5.el7 RHSA-2021:0429
Red Hat OpenShift 4 jenkins 2.263.3.1612434332-1.el7 RHSA-2021:0429, RHSA-2021:0423
Red Hat OpenShift 4 machine-config-daemon 4.5.0-202102050524.p0.git.2594.ff3b8c0.el8 RHSA-2021:0429
Red Hat OpenShift 4 openshift +1 4.5.0-202102050524.p0.git.0.9229406.el7 RHSA-2021:0429
Red Hat OpenShift 4 openshift-ansible +1 4.5.0-202102031005.p0.git.0.c6839a2.el7 RHSA-2021:0429
Red Hat OpenShift 4 openshift-clients +1 4.5.0-202102051529.p0.git.3612.61b096a.el7 RHSA-2021:0429
Red Hat OpenShift 4 runc 1.0.0-72.rhaos4.5.giteadfc6b.el8 RHSA-2021:0429
Red Hat OpenShift 3 jenkins 2.263.3.1612433584-1.el7 RHSA-2021:0637
Red Hat OpenShift 3 jenkins-2-plugins 3.11.1612862361-1.el7 RHSA-2021:0637
Red Hat OpenShift 3 python-rsa +1 4.5-3.el7 RHSA-2021:0637
ReleasePackageFixed inAdvisory
SLES 15 SP2 ant +2 1.10.7-4.3.1 SUSE-SU-2020:1944-1
SLES 12 SP5 ant 1.9.4-3.12.1 SUSE-SU-2022:4022-1
SLES 12 SP5 ant-antlr 1.9.4-3.12.3 SUSE-SU-2022:4022-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 ant 1.9.4-3.12.1 SUSE-SU-2022:4022-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ant 1.10.10-1.2 openSUSE-SU-2024:10616-1
openSUSE Tumbleweed junit 4.13.2-1.1 openSUSE-SU-2024:11676-1
openSUSE Leap 15.2 ant +3 1.10.7-lp152.2.3.1 openSUSE-SU-2020:1022-1
ReleasePackageFixed inAdvisory
Alpine v3.24 apache-ant 1.10.8-r0 —
Alpine v3.23 apache-ant 1.10.8-r0 —
Alpine v3.22 apache-ant 1.10.8-r0 —
Alpine v3.21 apache-ant 1.10.8-r0 —
Alpine v3.20 apache-ant 1.10.8-r0 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 apache-ant 1.10.8-r0 —
Alpine v3.18 apache-ant 1.10.8-r0 —
Alpine v3.17 apache-ant 1.10.8-r0 —
Alpine v3.16 apache-ant 1.10.8-r0 —
Alpine v3.15 apache-ant 1.10.8-r0 —
Alpine v3.14 apache-ant 1.10.8-r0 —
Alpine v3.13 apache-ant 1.10.8-r0 —
Alpine v3.12 apache-ant 1.10.8-r0 —
Alpine v3.11 apache-ant 1.10.8-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.ant:ant >= 1.1, < 1.9.15 1.9.15 GHSA-4p6w-m9wc-c9c9
Maven org.apache.ant:ant >= 1.10.0, < 1.10.8 1.10.8 GHSA-4p6w-m9wc-c9c9

Advisories 14

References