CVE Vulnerabilities

CVE-2020-1733

Insecure Temporary File

Published: Mar 11, 2020 | Modified: Nov 21, 2024
CVSS 3.x
5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L
CVSS 2.x
3.7 LOW
AV:L/AC:H/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
5 MODERATE
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L
Ubuntu
MEDIUM

A race condition flaw was found in Ansible Engine 2.7.17 and prior, 2.8.9 and prior, 2.9.6 and prior when running a playbook with an unprivileged become user. When Ansible needs to run a module with become user, the temporary directory is created in /var/tmp. This directory is created with umask 77 && mkdir -p ; this operation does not fail if the directory already exists and is owned by another user. An attacker could take advantage to gain control of the become user as the target directory can be retrieved by iterating /proc//cmdline.

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.16 (including)
Ansible Redhat 2.8.0 (including) 2.8.8 (excluding)
Ansible Redhat 2.9.0 (including) 2.9.5 (including)
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)
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 *
Ansible Ubuntu bionic *
Ansible Ubuntu eoan *
Ansible Ubuntu esm-apps/bionic *
Ansible Ubuntu esm-apps/focal *
Ansible Ubuntu esm-apps/xenial *
Ansible Ubuntu esm-infra-legacy/trusty *
Ansible Ubuntu focal *
Ansible Ubuntu trusty *
Ansible Ubuntu trusty/esm *
Ansible Ubuntu upstream *
Ansible Ubuntu xenial *

References