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 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.
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.
Set the property of the JVM to point to a directory that is not
world read/writable.
msalvatoreThere are two potential mitigations for this vulnerability.
1) Set your umask to 077.
2) Set your JVM's system property to a directory
only readable and writable by the current user running Ant.
More Information

Updated: 2020-06-11 00:17:06 UTC (commit 880cc309188f5eb5da57010c3eb035e4a00db194)