CVE-2020-1945
Published: 14 May 2020
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.
From the Ubuntu Security Team
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.
Notes
Author | Note |
---|---|
msalvatore | There are two potential mitigations for this vulnerability. 1) Set your umask to 077. 2) Set your JVM's java.io.tmpdir system property to a directory only readable and writable by the current user running Ant. The fix for this CVE is incomplete. CVE-2020-11979 finishes resolving the issue. |
Mitigation
Set the java.io.tmpdir property of the JVM to point to a directory that is not world read/writable.
Priority
Status
Severity score breakdown
Parameter | Value |
---|---|
Base score | 6.3 |
Attack vector | Local |
Attack complexity | High |
Privileges required | Low |
User interaction | None |
Scope | Unchanged |
Confidentiality | High |
Integrity impact | High |
Availability impact | None |
Vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |