CVE-2020-11979: Code Injection
Apache Ant could allow a remote authenticated attacker to bypass security restrictions, caused by an insecure temporary file flaw. By sending a specially-crafted request, an attacker could exploit this vulnerability to inject modified source files into the build process.
Other sources
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/jenkinsto a version that resolves this vulnerability.Fixed in 0:2.263.3.1612433584-1.el7 - Upgrade
Upgrade
redhat/conmonto a version that resolves this vulnerability.Fixed in 2:2.0.21-1.rhaos4.5.el7 - Upgrade
Upgrade
redhat/jenkinsto a version that resolves this vulnerability.Fixed in 0:2.263.3.1612434332-1.el7 - Upgrade
Upgrade
redhat/machine-config-daemonto a version that resolves this vulnerability.Fixed in 0:4.5.0-202102050524.p0.git.2594.ff3b8c0.el8 - Upgrade
Upgrade
redhat/openshiftto a version that resolves this vulnerability.Fixed in 0:4.5.0-202102050524.p0.git.0.9229406.el7 - Upgrade
Upgrade
redhat/openshift-ansibleto a version that resolves this vulnerability.Fixed in 0:4.5.0-202102031005.p0.git.0.c6839a2.el7 - Upgrade
Upgrade
redhat/openshift-clientsto a version that resolves this vulnerability.Fixed in 0:4.5.0-202102051529.p0.git.3612.61b096a.el7 - Upgrade
Upgrade
redhat/runcto a version that resolves this vulnerability.Fixed in 0:1.0.0-72.rhaos4.5.giteadfc6b.el8 - Upgrade
Upgrade
redhat/jenkinsto a version that resolves this vulnerability.Fixed in 0:2.263.3.1612434510-1.el8 - Upgrade
Upgrade
maven/org.apache.ant:antto a version that resolves this vulnerability.Fixed in 1.10.9 - Upgrade
Upgrade
redhat/antto a version that resolves this vulnerability.Fixed in 1.10.9 - Upgrade
Upgrade
Apache Antto a version that resolves this vulnerability.Fixed in 1.10.8 - Configuration
Apply the CVE-2020-1945 mitigation behavior (as in Apache Ant 1.10.8) so the temporary files Apache Ant creates are accessible only by the current user.
Apache Ant (temp file permissions for CVE-2020-1945 mitigation) temporary file permissions = restrict to current user only
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2020-11979?
The severity of CVE-2020-11979 is rated as medium.
How do I fix CVE-2020-11979?
You can fix CVE-2020-11979 by updating to the patched versions of the affected packages, such as Jenkins 2.263.3.1612433584-1.el7 or Apache Ant 1.10.9.
What are the affected software versions for CVE-2020-11979?
Affected software versions include Apache Ant 1.10.8, Jenkins 2.263.3.1612433584-1.el7, and several other Red Hat packages.
Who is impacted by CVE-2020-11979?
Users of the affected versions of Apache Ant and Jenkins on Red Hat systems are impacted by CVE-2020-11979.
What type of vulnerability is CVE-2020-11979?
CVE-2020-11979 is a security vulnerability related to improper protections on temporary files created during a task.