# CVE-2020-11979: Code injection in Apache Ant

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 6.92% (percentile 95, 2026-11-26)
- **CWE:** CWE-379
- **Aliases:** BIT-gradle-2020-11979, GHSA-f62v-xpxf-3v68, GHSA-j45w-qrgf-25vm
- **Published:** 2020-10-01T19:24:57.000Z
- **Modified:** 2026-10-08T22:16:55.507Z

## Who should check

- Projects that depend on Maven package org.apache.ant:ant (\< 1.10.9)
- Anyone running Apache Ant Apache Ant 1.10.8

## 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 and fixed versions

- Maven `org.apache.ant:ant`: affected \< 1.10.9; fixed 1.10.9 (osv)
- Apache Ant: Apache Ant 1.10.8 (cvelist)

## Mitigation

- Upgrade org.apache.ant:ant to 1.10.9 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-11979. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-11979.md
Affected: org.apache.ant:ant < 1.10.9
Fixed in: 1.10.9

Steps:
1. Search this machine and project for org.apache.ant:ant (Maven), Apache Ant: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-11979 being exploited?

There is no confirmed exploitation: CVE-2020-11979 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 6.92% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-11979?

High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2020-11979?

org.apache.ant:ant \< 1.10.9.

### Is there a fix for CVE-2020-11979?

Yes. Fixed in 1.10.9. Upgrade org.apache.ant:ant to 1.10.9 or later.

### How do I check if I'm affected by CVE-2020-11979?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread.html/rc3c8ef9724b5b1e171529b47f4b35cb7920edfb6e917fa21eb6c64ea%40%3Cdev.ant.apache.org%3E>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U3NRQQ7ECII4ZNGW7GBC225LVYMPQEKB/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AALW42FWNQ35F7KB3JVRC6NBVV7AAYYI/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DYBRN5C2RW7JRY75IB7Q7ZVKZCHWAQWS/>
- vendor: <https://security.gentoo.org/glsa/202011-18>
- vendor: <https://github.com/gradle/gradle/security/advisories/GHSA-j45w-qrgf-25vm>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2020-11979>
- patch: <https://www.oracle.com/security-alerts/cpujan2021.html>
- patch: <https://www.oracle.com/security-alerts/cpuApr2021.html>
- patch: <https://www.oracle.com//security-alerts/cpujul2021.html>
- patch: <https://www.oracle.com/security-alerts/cpuoct2021.html>
- patch: <https://www.oracle.com/security-alerts/cpujan2022.html>
- patch: <https://www.oracle.com/security-alerts/cpuapr2022.html>
- patch: <https://github.com/apache/ant/commit/87ac51d3c22bcf7cfd0dc07cb0bd04a496e0d428>
- other: <https://lists.apache.org/thread.html/r1dc8518dc99c42ecca5ff82d0d2de64cd5d3a4fa691eb9ee0304781e%40%3Cdev.creadur.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r4ca33fad3fb39d130cda287d5a60727d9e706e6f2cf2339b95729490%40%3Cdev.creadur.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r107ea1b1a7a214bc72fe1a04207546ccef542146ae22952e1013b5cc%40%3Cdev.creadur.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r2306b67f20c24942b872b0a41fbdc9330e8467388158bcd19c1094e0%40%3Cdev.creadur.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r5e1cdd79f019162f76414708b2092acad0a6703d666d72d717319305%40%3Cdev.creadur.apache.org%3E>
- other: <https://lists.apache.org/thread.html/raaeddc41da8f3afb1cb224876084a45f68e437a0afd9889a707e4b0c%40%3Cdev.creadur.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rbfe9ba28b74f39f46ec1bbbac3bef313f35017cf3aac13841a84483a%40%3Cdev.creadur.apache.org%3E>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U3NRQQ7ECII4ZNGW7GBC225LVYMPQEKB>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DYBRN5C2RW7JRY75IB7Q7ZVKZCHWAQWS>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AALW42FWNQ35F7KB3JVRC6NBVV7AAYYI>
- other: <https://lists.apache.org/thread.html/rbfe9ba28b74f39f46ec1bbbac3bef313f35017cf3aac13841a84483a@%3Cdev.creadur.apache.org%3E>
- other: <https://lists.apache.org/thread.html/raaeddc41da8f3afb1cb224876084a45f68e437a0afd9889a707e4b0c@%3Cdev.creadur.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r5e1cdd79f019162f76414708b2092acad0a6703d666d72d717319305@%3Cdev.creadur.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r4ca33fad3fb39d130cda287d5a60727d9e706e6f2cf2339b95729490@%3Cdev.creadur.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r2306b67f20c24942b872b0a41fbdc9330e8467388158bcd19c1094e0@%3Cdev.creadur.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r1dc8518dc99c42ecca5ff82d0d2de64cd5d3a4fa691eb9ee0304781e@%3Cdev.creadur.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r107ea1b1a7a214bc72fe1a04207546ccef542146ae22952e1013b5cc@%3Cdev.creadur.apache.org%3E>
- other: <https://github.com/apache/ant>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-11979>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-f62v-xpxf-3v68> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2020-11979> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-11979>
