CVE Vulnerabilities

CVE-2020-1740

Insecure Temporary File

Published: Mar 16, 2020 | Modified: Nov 07, 2023
CVSS 3.x
4.7
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
1.9 LOW
AV:L/AC:M/Au:N/C:P/I:N/A:N
RedHat/V2
RedHat/V3
Ubuntu

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.

Weakness

Creating and using insecure temporary files can leave application and system data vulnerable to attack.

Affected Software

Name Vendor Start Version End Version
Ansible Redhat * 2.7.17 (excluding)
Ansible Redhat 2.8.0 (including) 2.8.11 (excluding)
Ansible Redhat 2.9.0 (including) 2.9.7 (excluding)
Ansible_tower Redhat * 3.3.4 (including)
Ansible_tower Redhat 3.3.5 (including) 3.4.5 (including)
Ansible_tower Redhat 3.5.0 (including) 3.5.5 (including)
Ansible_tower Redhat 3.6.0 (including) 3.6.3 (including)
Cloudforms_management_engine Redhat 5.0 (including) 5.0 (including)
Openstack Redhat 13 (including) 13 (including)

References