Apache Ant: Insecure temporary file — GLSA 202011-18

Apache Ant uses various insecure temporary files possibly allowing local code execution.

Affected packages

dev-java/ant on all architectures
Affected versions < 1.10.9
Unaffected versions >= 1.10.9

Background

Ant is a Java-based build tool similar to ‘make’ that uses XML configuration files.

Description

A previous fix for a security vulnerability involving insecure temporary files has been found to be incomplete.

Impact

A local attacker could perform symlink attacks to overwrite arbitrary files with the privileges of the user running the application.

Workaround

There is no known workaround at this time.

Resolution

All Apache Ant users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-java/ant-1.10.9"
 

References

Release date
November 16, 2020

Latest revision
November 16, 2020: 1

Severity
normal

Exploitable
local

Bugzilla entries