CVE-2020-1733

Severity CVSS v4.0:
Pending analysis
Type:
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Publication date:
11/03/2020
Last modified:
07/11/2023

Description

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'.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* 2.7.16 (including)
cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* 2.8.0 (including) 2.8.8 (excluding)
cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* 2.9.0 (including) 2.9.5 (including)
cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:* 3.3.4 (including)
cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:* 3.3.5 (including) 3.4.5 (including)
cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:* 3.5.0 (including) 3.5.5 (including)
cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:* 3.6.0 (including) 3.6.3 (including)
cpe:2.3:a:redhat:cloudforms_management_engine:5.0:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openstack:13:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*