CVEfocus › CVE database › CVE-2020-1945

CVE-2020-1945

CVSS 6.3 MediumEPSS 1.8% (higher than 79% of CVEs)Published 2020-05-14Updated 2024-08-04Assigner: apache

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.

What to do

Fixed builds are available from Alpine, Debian, Maven: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

18Fixed
4Fix pending
64Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04antNot affected
vulnerable_code_not_present
Ubuntu 22.04antNot affected
vulnerable_code_not_present
Ubuntu 20.04antFix pending1.10.7-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2020-1945
Ubuntu 18.04antFix pending1.10.5-3~18.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2020-1945
Ubuntu 16.04antFix pending1.9.6-1ubuntu1.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2020-1945
Ubuntu 14.04antFix pending1.9.3-2ubuntu0.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2020-1945
Debian 14antFixed1.10.8-1DEBIAN-CVE-2020-1945
Debian 13antFixed1.10.8-1DEBIAN-CVE-2020-1945
Debian 12antFixed1.10.8-1DEBIAN-CVE-2020-1945
Red Hat Enterprise Linux 8antWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-antlrWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-apache-bcelWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-apache-bsfWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-apache-log4jWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-apache-oroWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-apache-regexpWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-apache-resolverWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-apache-xalan2Will not fix
Will not fix
Red Hat Enterprise Linux 8ant-commons-loggingWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-commons-netWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-javamailWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-jdependWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-jmfWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-jschWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-junitWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-libWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-manualWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-swingWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-testutilWill not fix
Will not fix
Red Hat Enterprise Linux 8ant-xzWill not fix
Will not fix
Red Hat Enterprise Linux 7antWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-antlrWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-apache-bcelWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-apache-bsfWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-apache-log4jWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-apache-oroWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-apache-regexpWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-apache-resolverWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-apache-xalan2Will not fix
Will not fix
Red Hat Enterprise Linux 7ant-commons-loggingWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-commons-netWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-javamailWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-jdependWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-jmfWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-jschWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-junitWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-manualWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-swingWill not fix
Will not fix
Red Hat Enterprise Linux 7ant-testutilWill not fix
Will not fix
Red Hat Enterprise Linux 6antWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-antlrWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-apache-bcelWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-apache-bsfWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-apache-log4jWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-apache-oroWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-apache-regexpWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-apache-resolverWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-commons-loggingWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-commons-netWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-javadocWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-javamailWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-jdependWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-jmfWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-jschWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-junitWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-manualWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-nodepsWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-scriptsWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-swingWill not fix
Out of support scope
Red Hat Enterprise Linux 6ant-traxWill not fix
Out of support scope
Red Hat Enterprise Linux 5antWill not fix
Out of support scope
Alpine Linux 3.24apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Alpine Linux 3.23apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Alpine Linux 3.22apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Alpine Linux 3.21apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Alpine Linux 3.20apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Alpine Linux 3.19apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Alpine Linux 3.18apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Alpine Linux 3.17apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Alpine Linux 3.16apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Alpine Linux 3.15apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Alpine Linux 3.14apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Alpine Linux 3.13apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Alpine Linux 3.12apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Alpine Linux 3.11apache-antFixed1.10.8-r0ALPINE-CVE-2020-1945
Maven libraryorg.apache.ant:antFixed1.9.15GHSA-4p6w-m9wc-c9c9

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.