Arch Linux Security Advisory ASA-202012-5

Severity: Medium
Date    : 2020-12-05
CVE-ID  : CVE-2020-11979
Package : ant
Type    : arbitrary code execution
Remote  : No
Link    :


The package ant before version 1.10.9-1 is vulnerable to arbitrary code


Upgrade to 1.10.9-1.

# pacman -Syu "ant>=1.10.9-1"

The problem has been fixed upstream in version 1.10.9.


The issue can be mitigated by making Ant use a directory that is only
readable and writable by the current user.


As mitigation for CVE-2020-1945 Apache Ant 1.10.8 changed the
permissions of temporary files it created so that only the current user
was allowed to access them. Unfortunately the fixcrlf task deleted the
temporary file and created a new one without said protection,
effectively nullifying the effort. This would still allow an attacker
to inject modified source files into the build process.


A local attacker might be able to execute arbitrary code by injecting
modified source files into the build process at the exact right moment.