CVE-2020-1733

Medium

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 <dir>"; 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/<pid>/cmdline'.

SeverityMedium
CVSS5.0
Exploit probability—
ProductRedhat Ansible
PublishedMar 11, 2020
First seenMar 11, 2020
Weakness typeCWE-377CWE-377

How to fix

Affected products

ProductAffected versionsFixed in
redhat ansiblev ≤ 2.7.16, 2.8.0 ≤ v < 2.8.8, 2.9.0 ≤ v ≤ 2.9.52.8.8
redhat ansible_towerv ≤ 3.3.4, 3.3.5 ≤ v ≤ 3.4.5, 3.5.0 ≤ v ≤ 3.5.5, 3.6.0 ≤ v ≤ 3.6.3—
redhat cloudforms_management_engine5.0—
redhat openstack13—
fedoraproject fedora30, 31, 32—
debian debian_linux8.0, 10.0—
ansiblePyPIv < 2.7.17, 2.8.0a1 ≤ v < 2.8.11, 2.9.0a1 ≤ v < 2.9.7, 2.8.0 ≤ v < 2.8.8, 2.9.0 ≤ v < 2.9.62.7.17, 2.8.11, 2.9.7, 2.8.8, 2.9.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.