CVE-2020-11979 Code injection in Apache Ant
An attacker can inject modified source files into the build process via insecure temporary file handling in the fixcrlf task.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-11979?
CVE-2020-11979 is a high-severity vulnerability in Fedoraproject Fedora, published on 1 Oct 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-379
Which versions are affected by CVE-2020-11979?
3 open source packages ship an affected version, including org.apache.ant:ant and gradle. It affects 37 products.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.ant:ant Maven | All versions | 1.10.9 |
org.apache.ant:ant Maven | All versions | 1.10.9 |
gradle Bitnami | All versions | 6.8.0 |
Products include Apache Ant, Fedoraproject Fedora, Gradle Gradle, Oracle Agile Engineering Data Management, Oracle Api Gateway, Oracle Banking Platform and 31 more.
How do I fix CVE-2020-11979?
Upgrade org.apache.ant:ant to 1.10.9 or later.
Is CVE-2020-11979 being exploited?
There is no known exploitation of CVE-2020-11979 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as BIT-gradle-2020-11979, CLEANSTART-2025-TN67221, CLEANSTART-2026-QY29190, CLEANSTART-2026-RX54054, DEBIAN-CVE-2020-11979, GHSA-f62v-xpxf-3v68 and 6 more.