CVE-2020-1740
Reported by redhat · Published March 16, 2020
ansible is fixed in 2.9.7, 2.8.11 and 2.7.17 (PyPI)
A flaw was found in Ansible Engine when using Ansible Vault for editing encrypted files. When a user executes "ansible-vault edit", another user on the same computer can read the old and new secret, as it is created in a temporary file with mkstemp and the returned file descriptor is closed and the method write_data is called to write the existing secret in the file. This method will delete the file before recreating it insecurely. All versions in 2.7.x, 2.8.x and 2.9.x branches are believed to be vulnerable.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ansible | PyPI | 2.9.7, 2.8.11, 2.7.17 |
| ansible | redhat | 2.9.7, 2.8.11, 2.7.17 |
| ansible_tower | redhat | 3.6.3, 3.5.5, 3.4.5, 3.3.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | ansible | 2.7.x, 2.8.x, 2.9.x |
| Red Hat | ansible | 2.7.x, 2.8.x, 2.9.x |
| alpine | ansible-base | 0 |
| alpine | ansible | 0, 0, 0 |
| PyPI | ansible | 0, 2.8.0, 2.9.0 |
Timeline
- Mar 16, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory (16 in total, the first dated here)
- Mar 17, 2026 Distribution Patch (6 in total, the first dated here)
- Sep 3, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-1740
vulnetix vdb fixes CVE-2020-1740
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-1740/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- FEDORA-2020-1b6ce91e37 vendor-advisoryx_refsource_FEDORA
- FEDORA-2020-3990f03ba3 vendor-advisoryx_refsource_FEDORA
- FEDORA-2020-f80154b5b4 vendor-advisoryx_refsource_FEDORA
- [debian-lts-announce] 20200505 [SECURITY] [DLA 2202-1] ansible security update mailing-listx_refsource_MLIST
- GLSA-202006-11 vendor-advisoryx_refsource_GENTOO
- DSA-4950 vendor-advisoryx_refsource_DEBIAN
- https://nvd.nist.gov/vuln/detail/CVE-2020-1740 advisory