CVE Vulnerabilities

CVE-2020-1740

Insecure Temporary File

Published: Mar 16, 2020 | Modified: Apr 05, 2022
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
3.9 LOW
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
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 * *
Ansible Redhat 2.8.0 *
Ansible Redhat 2.9.0 *
Ansible_tower Redhat * 3.3.4
Ansible_tower Redhat 3.3.5 3.4.5
Ansible_tower Redhat 3.5.0 3.5.5
Ansible_tower Redhat 3.6.0 3.6.3
Cloudforms_management_engine Redhat 5.0 5.0
Openstack Redhat 13 13
Red Hat Ansible Engine 2.7 for RHEL 7 RedHat ansible-0:2.7.17-1.el7ae *
Red Hat Ansible Engine 2.8 for RHEL 7 RedHat ansible-0:2.8.11-1.el7ae *
Red Hat Ansible Engine 2.8 for RHEL 8 RedHat ansible-0:2.8.11-1.el8ae *
Red Hat Ansible Engine 2.9 for RHEL 7 RedHat ansible-0:2.9.7-1.el7ae *
Red Hat Ansible Engine 2.9 for RHEL 8 RedHat ansible-0:2.9.7-1.el8ae *
Red Hat Ansible Engine 2 for RHEL 7 RedHat ansible-0:2.9.7-1.el7ae *
Red Hat Ansible Engine 2 for RHEL 8 RedHat ansible-0:2.9.7-1.el8ae *
Red Hat Ansible Tower 3.4 for RHEL 7 RedHat ansible-tower-34/ansible-tower-memcached:1.4.15-28 *
Red Hat Ansible Tower 3.4 for RHEL 7 RedHat ansible-tower-35/ansible-tower-memcached:1.4.15-28 *
Red Hat Ansible Tower 3.4 for RHEL 7 RedHat ansible-tower-37/ansible-tower-memcached-rhel7:1.4.15-28 *
Red Hat Ansible Tower 3.5 for RHEL 7 RedHat ansible-tower-35/ansible-tower:3.5.6-1 *
Ansible Ubuntu bionic *
Ansible Ubuntu eoan *
Ansible Ubuntu focal *
Ansible Ubuntu trusty *
Ansible Ubuntu trusty/esm *
Ansible Ubuntu upstream *
Ansible Ubuntu xenial *

References