CVE-2020-1945 json
Sensitive Data Exposure in Apache Ant
published 2020-05-14 6 y ago modified 2026-06-17 4 mo ago also GHSA-4p6w-m9wc-c9c9 , EUVD-2020-0743
- cvss
- 6.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.apache.ant:ant 1.9.15, 1.10.8
- oracle timesten_in-memory_database 11.2.2.8.27
- ant Debian 14, Debian 13, Debian 12 1.10.8-1
debian advisories DEBIAN-CVE-2020-1945
- ant Ubuntu Pro 14.04 LTS 1.9.3-2ubuntu0.1+esm1
- ant Ubuntu Pro 16.04 LTS 1.9.6-1ubuntu1.1+esm1
- ant Ubuntu Pro 18.04 LTS 1.10.5-3~18.04.1~esm1
- ant Ubuntu Pro 20.04 LTS 1.10.7-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2020-1945
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- jenkins openshift 3.11 2.263.3.1612433584-1.el7
- python-rsa openshift 3.11 4.5-3.el7
- python2-rsa openshift 3.11 4.5-3.el7
- jenkins-2-plugins openshift 3.11 3.11.1612862361-1.el7
- runc openshift 4.5 1.0.0-72.rhaos4.5.giteadfc6b.el8
- conmon openshift 4.5 2:2.0.21-1.rhaos4.5.el7
- conmon openshift 4.5 2:2.0.21-1.rhaos4.5.el8
- jenkins openshift 4.5 2.263.3.1612434332-1.el7
red hat advisories RHSA-2021:0637RHSA-2021:0429RHSA-2021:0423
- ant SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 1.9.4-3.12.1
- ant-antlr SLE Software Development Kit 12 SP5 1.9.4-3.12.3
- ant SLE Module for Development Tools 15 SP2 1.10.7-4.3.1
- ant-antlr SLE Module for Development Tools 15 SP2 1.10.7-4.3.1
- ant-junit SLE Module for Development Tools 15 SP2 1.10.7-4.3.1
suse advisories SUSE-SU-2022:4022-1SUSE-SU-2020:1944-1
- ant openSUSE Tumbleweed 1.10.10-1.2
- junit openSUSE Tumbleweed 4.13.2-1.1
- ant openSUSE Leap 15.2 1.10.7-lp152.2.3.1
- ant-antlr openSUSE Leap 15.2 1.10.7-lp152.2.3.1
- ant-junit openSUSE Leap 15.2 1.10.7-lp152.2.3.1
- ant-junit5 openSUSE Leap 15.2 1.10.7-lp152.2.3.1
opensuse advisories openSUSE-SU-2024:10616-1openSUSE-SU-2024:11676-1openSUSE-SU-2020:1022-1
- apache-ant Alpine 3.24, Alpine 3.23, Alpine 3.22 +11 more 1.10.8-r0
alpine advisories ALPINE-CVE-2020-1945
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ant Arch Linux 1.10.8-1
arch linux advisories AVG-1159
- oracle.com/security-alerts/cpujul2020.html advisory
- oracle.com/security-alerts/cpuoct2020.html advisory
- oracle.com//security-alerts/cpujul2021.html advisory
- oracle.com/security-alerts/cpuApr2021.html advisory
- oracle.com/security-alerts/cpujan2021.html advisory
- oracle.com/security-alerts/cpujan2022.html advisory
- oracle.com/security-alerts/cpuoct2021.html advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-1945 updated cvss 6.3
ant: insecure temporary file vulnerability
-
Red Hat BPM Suite 6 ant Red Hat Enterprise Linux 5 ant Red Hat Enterprise Linux 6 ant, ant-jmf, ant-jsch, ant-trax, ant-antlr, ant-junit, +15 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 ant, ant-jmf, ant-jsch, ant-antlr, ant-junit, ant-swing, +14 more Red Hat Enterprise Linux 8 ant, ant-xz, ant-jmf, ant-lib, ant-jsch, ant-antlr, +16 moreaffected: workaround, no fix planned “Will not fix”
-
Red Hat JBoss BRMS 5 ant Red Hat JBoss Data Virtualization 6 ant Red Hat JBoss Enterprise Application Platform 5 ant Red Hat JBoss Fuse Service Works 6 ant Red Hat JBoss Operations Network 3 antaffected: workaround, no fix planned “Out of support scope”
-
Red Hat OpenShift Container Platform 4 openshift4/ose-metering-hiveaffected: workaround, no fix planned “Will not fix”
-
Red Hat AMQ Streams 1.5.0fixed: vendor fix RHSA-2020:2618
-
Red Hat OpenShift Container Platform 3.11 jenkins 2.263.3.1612433584-1.el7fixed: vendor fix RHSA-2021:0637
-
Red Hat OpenShift Container Platform 4.5 conmon 2.0.21-1.rhaos4.5.el7, conmon 2.0.21-1.rhaos4.5.el8, jenkins 2.263.3.1612434332-1.el7, runc 1.0.0-72.rhaos4.5.giteadfc6b.el8, openshift 4.5.0-202102050524.p0.git.0.9229406.el7, openshift 4.5.0-202102050524.p0.git.0.9229406.el8, +9 morefixed: vendor fix RHSA-2021:0429
-
Red Hat OpenShift Container Platform 4.6 jenkins 2.263.3.1612434510-1.el8fixed: vendor fix RHSA-2021:0423
show 3 moreshow fewer
-
Red Hat RHDM 7.9.0fixed: vendor fix RHSA-2020:4960
-
Red Hat RHPAM 7.9.0fixed: vendor fix RHSA-2020:4961
-
Red Hat JBoss Enterprise Application Platform 6 ant Red Hat OpenShift Container Platform 3.11 jenkins-2-plugins, haproxy 1.8.28-1.el7, python-rsa 4.5-3.el7, python2-rsa 4.5-3.el7, haproxy18 1.8.28-1.el7, jenkins-2-plugins 3.11.1612862361-1.el7, +40 more Red Hat OpenShift Container Platform 4 jenkins-2-plugins Red Hat OpenShift Container Platform 4.6 python-rsa 4.7-1.el8, python3-rsa 4.7-1.el8, runc 1.0.0-82.rhaos4.6.git086e841.el7, runc 1.0.0-82.rhaos4.6.git086e841.el8, cri-o 1.19.1-7.rhaos4.6.git6377f68.el7, jenkins-2-plugins 4.6.1612257979-1.el8, +16 more Red Hat Single Sign-On 7 rh-sso7-keycloak rh-sso7-keycloaknot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.77% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.3 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 2.0 | 3.3 | AV:L/AC:M/Au:N/C:P/I:P/A:N |
| GitHub | 3.1 | 6.3 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.ant:ant | >=1.1, <1.9.15 >=1.10.0, <1.10.8 |
1.9.15 1.10.8 |
Affected products
- n/a Apache Ant
Classification
References
-
oracle.com
/security-alerts/cpujul2020.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuoct2020.html
web, patch, third-party-advisory
-
oracle.com
//security-alerts/cpujul2021.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuApr2021.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpujan2021.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpujan2022.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuoct2021.html
web, patch, third-party-advisory
-
usn.ubuntu.com
/4380-1/
vendor-advisory, mailing-list
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/RRVAWTCVXJMRYKQKEXYSNBF7NLSR6OEI/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/EQBR65TINSJRN7PTPIVNYS33P535WM74/
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2020-07/msg00053.html
vendor-advisory, mailing-list, third-party-advisory
-
security.gentoo.org
/glsa/202007-34
vendor-advisory, web
-
lists.apache.org
/thread.html/r8e592bbfc016a5dbe2a8c0e81ff99682b9c78c453621b82c14e7b75e%40%3Cdev.ant.apache.org%3E
mailing-list, vendor-advisory
-
lists.apache.org
/thread.html/rda80ac59119558eaec452e58ddfac2ccc9211da1c65f7927682c78b1%40%3Cdev.creadur.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rfd346609527a79662c48b1da3ac500ec30f29f7ddaa3575051e81890%40%3Ccommits.creadur.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/re1ce84518d773a94a613d988771daf9252c9cf7375a9a477009f9735%40%3Ccommits.creadur.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r95dc943e47a211d29df605e14f86c280fc9fa8d828b2b53bd07673c9%40%3Cdev.creadur.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rd7dda48ff835f4d0293949837d55541bfde3683bd35bd8431e324538%40%3Cdev.creadur.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r1863b9ce4c3e4b1e5b0c671ad05545ba3eb8399616aa746af5dfe1b1%40%3Cdev.creadur.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rdaa9c51d5dc6560c9d2b3f3d742c768ad0705e154041e574a0fae45c%40%3Cnotifications.groovy.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r1b32c76afffcf676e13ed635a3332f3e46e6aaa7722eb3fc7a28f58e%40%3Cdev.hive.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r0d08a96ba9de8aa435f32944e8b2867c368a518d4ff57782e3637335%40%3Cissues.hive.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r4b2904d64affd4266cd72ccb2fc3927c1c2f22009f183095aa46bf90%40%3Cissues.hive.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r6edd3e2cb79ee635630d891b54a4f1a9cd8c7f639d6ee34e75fbe830%40%3Cissues.hive.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r8e24abb7dd77cda14c6df90a377c94f0a413bbfcec90a29540ff8adf%40%3Cissues.hive.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r2704fb14ce068c64759a986f81d5b5e42ab434fa13d0f444ad52816b%40%3Cdev.creadur.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r6e295d792032ec02b32be3846c21a58857fba4a077d22c5842d69ba2%40%3Ctorque-dev.db.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r815f88d1044760176f30a4913b4baacd06f3eae4eb662de7388e46d8%40%3Cissues.hive.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r5dfc77048b1f9db26622dce91a6edf083d499397256594952fad5f35%40%3Ccommits.myfaces.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rc3c8ef9724b5b1e171529b47f4b35cb7920edfb6e917fa21eb6c64ea%40%3Cdev.ant.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rb8ec556f176c83547b959150e2108e2ddf1d61224295941908b0a81f%40%3Cannounce.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rc89e491b5b270fb40f1210b70554527b737c217ad2e831b643ead6bc%40%3Cuser.ant.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rf07feaf78afc8f701e21948a06ef92565d3dff1242d710f4fbf900b2%40%3Cdev.creadur.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r1a9c992d7c8219dc15b4ad448649f0ffdaa88d76ef6a0035c49455f5%40%3Cdev.creadur.apache.org%3E
mailing-list
-
openwall.com
/lists/oss-security/2020/09/30/6
mailing-list, third-party-advisory
-
lists.apache.org
/thread.html/r1dc8518dc99c42ecca5ff82d0d2de64cd5d3a4fa691eb9ee0304781e%40%3Cdev.creadur.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r4ca33fad3fb39d130cda287d5a60727d9e706e6f2cf2339b95729490%40%3Cdev.creadur.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r107ea1b1a7a214bc72fe1a04207546ccef542146ae22952e1013b5cc%40%3Cdev.creadur.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r2306b67f20c24942b872b0a41fbdc9330e8467388158bcd19c1094e0%40%3Cdev.creadur.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r5e1cdd79f019162f76414708b2092acad0a6703d666d72d717319305%40%3Cdev.creadur.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r3cea0f3da4f6d06d7afb6c0804da8e01773a0f50a09b8d9beb2cda65%40%3Cissues.hive.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r6030d34ceacd0098538425c5dac8251ffc7fd90b886942bc7ef87858%40%3Cnotifications.groovy.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rce099751721c26a8166d8b6578293820832831a0b2cb8d93b8efa081%40%3Cnotifications.groovy.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r6970d196cd73863dafdbc3a7052562deedd338e3bd7d73d8171d92d6%40%3Ccommits.groovy.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/ra12c3e23b021f259a201648005b9946acd7f618a6f32301c97047967%40%3Cusers.groovy.apache.org%3E
mailing-list
-
nvd.nist.gov
/vuln/detail/CVE-2020-1945
advisory
-
lists.apache.org
/thread.html/raaeddc41da8f3afb1cb224876084a45f68e437a0afd9889a707e4b0c@%3Cdev.creadur.apache.org%3E
web
-
lists.apache.org
/thread.html/rb860063819b9c0990e1fbce29d83f4554766fe5a05e3b3939736bf2b@%3Ccommits.myfaces.apache.org%3E
web
-
lists.apache.org
/thread.html/rb8ec556f176c83547b959150e2108e2ddf1d61224295941908b0a81f@%3Cannounce.apache.org%3E
web
-
lists.apache.org
/thread.html/rbfe9ba28b74f39f46ec1bbbac3bef313f35017cf3aac13841a84483a@%3Cdev.creadur.apache.org%3E
web
-
lists.apache.org
/thread.html/rc3c8ef9724b5b1e171529b47f4b35cb7920edfb6e917fa21eb6c64ea@%3Cdev.ant.apache.org%3E
web
-
lists.apache.org
/thread.html/rc89e491b5b270fb40f1210b70554527b737c217ad2e831b643ead6bc@%3Cuser.ant.apache.org%3E
web
-
lists.apache.org
/thread.html/rce099751721c26a8166d8b6578293820832831a0b2cb8d93b8efa081@%3Cnotifications.groovy.apache.org%3E
web
-
lists.apache.org
/thread.html/rd7dda48ff835f4d0293949837d55541bfde3683bd35bd8431e324538@%3Cdev.creadur.apache.org%3E
web
-
lists.apache.org
/thread.html/rda80ac59119558eaec452e58ddfac2ccc9211da1c65f7927682c78b1@%3Cdev.creadur.apache.org%3E
web
-
lists.apache.org
/thread.html/rdaa9c51d5dc6560c9d2b3f3d742c768ad0705e154041e574a0fae45c@%3Cnotifications.groovy.apache.org%3E
web
-
lists.apache.org
/thread.html/re1ce84518d773a94a613d988771daf9252c9cf7375a9a477009f9735@%3Ccommits.creadur.apache.org%3E
web
-
lists.apache.org
/thread.html/rf07feaf78afc8f701e21948a06ef92565d3dff1242d710f4fbf900b2@%3Cdev.creadur.apache.org%3E
web
-
lists.apache.org
/thread.html/rfd346609527a79662c48b1da3ac500ec30f29f7ddaa3575051e81890@%3Ccommits.creadur.apache.org%3E
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/EQBR65TINSJRN7PTPIVNYS33P535WM74
web
Sources
- CVE List CVE-2020-1945
- GitHub Advisory GHSA-4p6w-m9wc-c9c9
- NVD CVE-2020-1945
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.