CVE Vulnerabilities

CVE-2020-1740

Insecure Temporary File

Published: Mar 16, 2020 | Modified: Nov 21, 2024
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
MEDIUM
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
AnsibleRedhat*2.7.17 (excluding)
AnsibleRedhat2.8.0 (including)2.8.11 (excluding)
AnsibleRedhat2.9.0 (including)2.9.7 (excluding)
Ansible_towerRedhat*3.3.4 (including)
Ansible_towerRedhat3.3.5 (including)3.4.5 (including)
Ansible_towerRedhat3.5.0 (including)3.5.5 (including)
Ansible_towerRedhat3.6.0 (including)3.6.3 (including)
Cloudforms_management_engineRedhat5.0 (including)5.0 (including)
OpenstackRedhat13 (including)13 (including)
Red Hat Ansible Engine 2.7 for RHEL 7RedHatansible-0:2.7.17-1.el7ae*
Red Hat Ansible Engine 2.8 for RHEL 7RedHatansible-0:2.8.11-1.el7ae*
Red Hat Ansible Engine 2.8 for RHEL 8RedHatansible-0:2.8.11-1.el8ae*
Red Hat Ansible Engine 2.9 for RHEL 7RedHatansible-0:2.9.7-1.el7ae*
Red Hat Ansible Engine 2.9 for RHEL 8RedHatansible-0:2.9.7-1.el8ae*
Red Hat Ansible Engine 2 for RHEL 7RedHatansible-0:2.9.7-1.el7ae*
Red Hat Ansible Engine 2 for RHEL 8RedHatansible-0:2.9.7-1.el8ae*
Red Hat Ansible Tower 3.4 for RHEL 7RedHatansible-tower-34/ansible-tower-memcached:1.4.15-28*
Red Hat Ansible Tower 3.4 for RHEL 7RedHatansible-tower-35/ansible-tower-memcached:1.4.15-28*
Red Hat Ansible Tower 3.4 for RHEL 7RedHatansible-tower-37/ansible-tower-memcached-rhel7:1.4.15-28*
Red Hat Ansible Tower 3.5 for RHEL 7RedHatansible-tower-35/ansible-tower:3.5.6-1*
AnsibleUbuntubionic*
AnsibleUbuntueoan*
AnsibleUbuntuesm-apps/bionic*
AnsibleUbuntuesm-apps/focal*
AnsibleUbuntuesm-apps/xenial*
AnsibleUbuntufocal*
AnsibleUbuntutrusty*
AnsibleUbuntutrusty/esm*
AnsibleUbuntuupstream*
AnsibleUbuntuxenial*

References