ArchLinux: 202005-15: ant: arbitrary command execution
Summary
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.
Resolution
Upgrade to 1.10.8-1.
# pacman -Syu "ant>=1.10.8-1"
The problem has been fixed upstream in version 1.10.8.
References
https://lists.apache.org/thread/r8e592bbfc016a5dbe2a8c0e81ff99682b9c78c453621b82c14e7b75e@%3Cdev.ant.apache.org%3E https://security.archlinux.org/CVE-2020-1945
Workaround
None.