Vulnerability · Published Mar 16, 2020 · Assigned by redhat
CVE-2020-1740
Low 3.9
In plain English
A low-severity security flaw in ansible from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ansible | 2.9.7+dfsg-1 | DEBIAN-CVE-2020-1740 |
| Debian:13 | ansible | 2.9.7+dfsg-1 | DEBIAN-CVE-2020-1740 |
| Debian:14 | ansible | 2.9.7+dfsg-1 | DEBIAN-CVE-2020-1740 |
| PyPI | ansible | 2.7.17 | GHSA-vcg8-98q8-g7mj |
| PyPI | ansible | 2.7.17, 2.8.9, 2.9.6 | PYSEC-2020-12 |
| PyPI | ansible | 2.8.11 | GHSA-vcg8-98q8-g7mj |
| PyPI | ansible | 2.9.7 | GHSA-vcg8-98q8-g7mj |
Affected products (as reported)
Weakness: CWE-377 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1740 x_refsource_CONFIRM
- https://github.com/ansible/ansible/issues/67798 x_refsource_CONFIRM
- FEDORA-2020-1b6ce91e37 vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-3990f03ba3 vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-f80154b5b4 vendor-advisory, x_refsource_FEDORA
- [debian-lts-announce] 20200505 [SECURITY] [DLA 2202-1] ansible security update mailing-list, x_refsource_MLIST
- GLSA-202006-11 vendor-advisory, x_refsource_GENTOO
- DSA-4950 vendor-advisory, x_refsource_DEBIAN