Skip to content
OpenAdvisories
High · 7.5 CVE-2020-11979 BIT-gradle-2020-11979EUVD-2021-0549GHSA-f62v-xpxf-3v68GHSA-j45w-qrgf-25vm

Code injection in Apache Ant

Published Oct 1, 2020 · Updated Oct 8, 2026 · Assigned by apache

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.

Affected products

VendorProductAffectedFixed
— Apache Ant Apache Ant 1.10.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ant 1.10.9-1 —
Debian 13 ant 1.10.9-1 —
Debian 12 ant 1.10.9-1 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS ant No fix yet —
Ubuntu Pro 18.04 LTS ant No fix yet —
Ubuntu Pro 16.04 LTS ant No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS ant No fix yet —
ReleasePackageFixed inAdvisory
Red Hat OpenShift 4 conmon 2:2.0.21-1.rhaos4.5.el7 RHSA-2021:0429
Red Hat OpenShift 4 jenkins 2.263.3.1612434332-1.el7 RHSA-2021:0429, RHSA-2021:0423
Red Hat OpenShift 4 machine-config-daemon 4.5.0-202102050524.p0.git.2594.ff3b8c0.el8 RHSA-2021:0429
Red Hat OpenShift 4 openshift +1 4.5.0-202102050524.p0.git.0.9229406.el7 RHSA-2021:0429
Red Hat OpenShift 4 openshift-ansible +1 4.5.0-202102031005.p0.git.0.c6839a2.el7 RHSA-2021:0429
Red Hat OpenShift 4 openshift-clients +1 4.5.0-202102051529.p0.git.3612.61b096a.el7 RHSA-2021:0429
Red Hat OpenShift 4 runc 1.0.0-72.rhaos4.5.giteadfc6b.el8 RHSA-2021:0429
Red Hat OpenShift 3 jenkins 2.263.3.1612433584-1.el7 RHSA-2021:0637
Red Hat OpenShift 3 jenkins-2-plugins 3.11.1612862361-1.el7 RHSA-2021:0637
Red Hat OpenShift 3 python-rsa +1 4.5-3.el7 RHSA-2021:0637
ReleasePackageFixed inAdvisory
SLES 12 SP5 ant 1.9.4-3.12.1 SUSE-SU-2022:4022-1
SLES 12 SP5 ant-antlr 1.9.4-3.12.3 SUSE-SU-2022:4022-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 ant 1.9.4-3.12.1 SUSE-SU-2022:4022-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ant 1.10.10-1.2 openSUSE-SU-2024:10616-1
ReleasePackageFixed inAdvisory
Alpine v3.24 apache-ant 1.10.9-r0 —
Alpine v3.24 gradle 6.8.3-r0 —
Alpine v3.23 apache-ant 1.10.9-r0 —
Alpine v3.23 gradle 6.8.3-r0 —
Alpine v3.22 apache-ant 1.10.9-r0 —
Alpine v3.22 gradle 6.8.3-r0 —
Alpine v3.21 apache-ant 1.10.9-r0 —
Alpine v3.21 gradle 6.8.3-r0 —
Alpine v3.20 apache-ant 1.10.9-r0 —
Alpine v3.20 gradle 6.8.3-r0 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 apache-ant 1.10.9-r0 —
Alpine v3.19 gradle 6.8.3-r0 —
Alpine v3.18 apache-ant 1.10.9-r0 —
Alpine v3.18 gradle 6.8.3-r0 —
Alpine v3.17 apache-ant 1.10.9-r0 —
Alpine v3.17 gradle 6.8.3-r0 —
Alpine v3.16 apache-ant 1.10.9-r0 —
Alpine v3.16 gradle 6.8.3-r0 —
Alpine v3.15 apache-ant 1.10.9-r0 —
Alpine v3.15 gradle 6.8.3-r0 —
Alpine v3.14 apache-ant 1.10.9-r0 —
Alpine v3.14 gradle 6.8.3-r0 —
Alpine v3.13 apache-ant 1.10.9-r0 —
Alpine v3.12 apache-ant 1.10.9-r0 —
Alpine v3.11 apache-ant 1.10.9-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.ant:ant < 1.10.9 1.10.9 GHSA-f62v-xpxf-3v68

Advisories 9

References