# CVE-2020-1945: ant: 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 prop...

CVE-2020-1945 is fixed in 2 products on 1 platform, first by ant 1.10.5-3~18.04.1~esm1, released May 14, 2020. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2020-1945
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0177
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 14, 2020

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ant Ubuntu 18.04.6 LTS (bionic) | 1.10.5-3~18.04.1~esm1 | [ant 1.10.5-3~18.04.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ant-1.10.5-3-18.04.1-esm1.md) | May 14, 2020 |
| Linux | ant Ubuntu 20.04 LTS (focal) | 1.10.7-1ubuntu0.1~esm1 | [ant 1.10.7-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-ant-1.10.7-1ubuntu0.1-esm1.md) | May 14, 2020 |
| Linux | ant-optional Ubuntu 18.04.6 LTS (bionic) | 1.10.5-3~18.04.1~esm1 | [ant-optional 1.10.5-3~18.04.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ant-optional-1.10.5-3-18.04.1-esm1.md) | May 14, 2020 |
| Linux | ant-optional Ubuntu 20.04 LTS (focal) | 1.10.7-1ubuntu0.1~esm1 | [ant-optional 1.10.7-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-ant-optional-1.10.7-1ubuntu0.1-esm1.md) | May 14, 2020 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
