CVE-2020-1733Redhat Ansible
Medium 5.0
Follow: this CVE · Redhat · Redhat Ansible We alert you by email or Slack (account required).
- 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
- 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'.
What to do
- Apply the vendor's security update for Ansible.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| redhat | ansible | ≤ 2.7.16 |
| redhat | ansible | ≥ 2.8.0 < 2.8.8 |
| redhat | ansible | ≥ 2.9.0 ≤ 2.9.5 |
| redhat | ansible_tower | ≤ 3.3.4 |
| redhat | ansible_tower | ≥ 3.3.5 ≤ 3.4.5 |
| redhat | ansible_tower | ≥ 3.5.0 ≤ 3.5.5 |
| redhat | ansible_tower | ≥ 3.6.0 ≤ 3.6.3 |
| redhat | cloudforms_management_engine | 5.0 |
| redhat | openstack | 13 |
| fedoraproject | fedora | 30 |
| fedoraproject | fedora | 31 |
| fedoraproject | fedora | 32 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 10.0 |
Official advisories
- ansible-14-14.6.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12447-1 · Nov 6, 2026 Critical
- ansible-13-13.7.0-1.1 on GA media · SUSE · openSUSE-SU-2026:10944-1 · Jun 3, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Issue Tracking Vendor Advisory
- github.com Exploit Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.gentoo.org Third Party Advisory
- www.debian.org Third Party Advisory