Live threats

All CVEs / Redhat

CVE-2020-1733Redhat Ansible

Medium 5.0

Priority
30
CVSS 3.1
5.0
EPSS
0.4%
probability of exploitation in 30 days · percentile 36
Auth required
Yes
Published
Mar 11, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-377, CWE-362
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Ansible.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI ansible < 2.7.17 2.7.17 pip install "ansible>=2.7.17"
PyPI ansible ≥ 2.8.0a1 < 2.8.11 2.8.11 pip install "ansible>=2.8.11"
PyPI ansible ≥ 2.9.0a1 < 2.9.7 2.9.7 pip install "ansible>=2.9.7"
PyPI ansible < 2.7.17 2.7.17 pip install "ansible>=2.7.17"
PyPI ansible ≥ 2.8.0 < 2.8.8 2.8.8 pip install "ansible>=2.8.8"
PyPI ansible ≥ 2.9.0 < 2.9.6 2.9.6 pip install "ansible>=2.9.6"

Per OSV / GitHub Advisories (GHSA-g4mq-6fp5-qwcf, PYSEC-2020-5). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
redhatansible≤ 2.7.16
redhatansible≥ 2.8.0 < 2.8.8
redhatansible≥ 2.9.0 ≤ 2.9.5
redhatansible_tower≤ 3.3.4
redhatansible_tower≥ 3.3.5 ≤ 3.4.5
redhatansible_tower≥ 3.5.0 ≤ 3.5.5
redhatansible_tower≥ 3.6.0 ≤ 3.6.3
redhatcloudforms_management_engine5.0
redhatopenstack13
fedoraprojectfedora30
fedoraprojectfedora31
fedoraprojectfedora32
debiandebian_linux8.0
debiandebian_linux10.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.