CVE-2020-1740
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.
How to fix
- redhat ansible2.7.17, 2.8.11, 2.9.7 or later
- ansible2.7.17, 2.8.11, 2.9.7, 2.8.9, 2.9.6 or later
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/
- security.gentoo.org/glsa/202006-11
- debian.org/security/2021/dsa-4950
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat ansible | v < 2.7.17, 2.8.0 ≤ v < 2.8.11, 2.9.0 ≤ v < 2.9.7 | 2.7.17, 2.8.11, 2.9.7 |
| redhat ansible_tower | v ≤ 3.3.4, 3.3.5 ≤ v ≤ 3.4.5, 3.5.0 ≤ v ≤ 3.5.5, 3.6.0 ≤ v ≤ 3.6.3 | — |
| redhat cloudforms_management_engine | 5.0 | — |
| redhat openstack | 13 | — |
| debian debian_linux | 8.0, 10.0 | — |
| fedoraproject fedora | 30, 31, 32 | — |
| ansiblePyPI | v < 2.7.17, 2.8.0a1 ≤ v < 2.8.11, 2.9.0a1 ≤ v < 2.9.7, 2.8.0 ≤ v < 2.8.9, 2.9.0 ≤ v < 2.9.6 | 2.7.17, 2.8.11, 2.9.7, 2.8.9, 2.9.6 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.