CVE-2020-1733
published medium CVSS 3.1 · 5.0ansible: insecure temporary directory when running become_user from become directive
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | Ansible2.7.17 and prior · 2.8.9 and prior · 2.9.6 and prior | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2ANSIBLE2-2023-008 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | v3.10 | ansible | Fixed | 2.8.11-r0 | Package fix record |
| Debian | buster | ansible | Advisory build | 2.7.7+dfsg-1+deb10u1 | DSA-4950-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ansiblenoarch | Advisory build | 2.9.21-bp153.2.3.1 | OPENSUSE-SU-2022:0081-1 |
| Ubuntu | bionic | ansible | Advisory build | 2.5.1+dfsg-1ubuntu0.1+esm1 | USN-5315-1 |
| Amazon Linux | AL2 | ansiblenoarch | Listed in advisory | Not stated | ALAS2ANSIBLE2-2023-008 |
| Alpine Linux | v3.11 | ansible | Fixed | 2.9.7-r0 | Package fix record |
Show 49 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.12 | ansible | Fixed | 2.9.7-r0 | Package fix record |
| Alpine Linux | v3.13 | ansible-base | Fixed | 2.9.7-r0 | Package fix record |
| Alpine Linux | v3.14 | ansible-base | Fixed | 2.9.7-r0 | Package fix record |
| Alpine Linux | v3.15 | ansible-base | Fixed | 2.9.7-r0 | Package fix record |
| Alpine Linux | v3.9 | ansible | Fixed | 2.7.17-r0 | Package fix record |
| Debian | jessie | ansible | Advisory build | 1.7.2+dfsg-2+deb8u3 | DLA-2202-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ansible-docnoarch | Advisory build | 2.9.21-bp153.2.3.1 | OPENSUSE-SU-2022:0081-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ansible-testnoarch | Advisory build | 2.9.21-bp153.2.3.1 | OPENSUSE-SU-2022:0081-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansibleaarch64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansibleppc64le | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansibles390x | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansiblex86_64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-10aarch64 | Advisory build | 10.6.0-1.1 | OPENSUSE-SU-2024:14536-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-10ppc64le | Advisory build | 10.6.0-1.1 | OPENSUSE-SU-2024:14536-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-10s390x | Advisory build | 10.6.0-1.1 | OPENSUSE-SU-2024:14536-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-10x86_64 | Advisory build | 10.6.0-1.1 | OPENSUSE-SU-2024:14536-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-11aarch64 | Advisory build | 11.11.0-1.1 | OPENSUSE-SU-2025:15605-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-11ppc64le | Advisory build | 11.11.0-1.1 | OPENSUSE-SU-2025:15605-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-11s390x | Advisory build | 11.11.0-1.1 | OPENSUSE-SU-2025:15605-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-11x86_64 | Advisory build | 11.11.0-1.1 | OPENSUSE-SU-2025:15605-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-12aarch64 | Advisory build | 12.2.0-1.1 | OPENSUSE-SU-2025:15753-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-12ppc64le | Advisory build | 12.2.0-1.1 | OPENSUSE-SU-2025:15753-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-12s390x | Advisory build | 12.2.0-1.1 | OPENSUSE-SU-2025:15753-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-12x86_64 | Advisory build | 12.2.0-1.1 | OPENSUSE-SU-2025:15753-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-13aarch64 | Advisory build | 13.7.0-1.1 | OPENSUSE-SU-2026:10944-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-13ppc64le | Advisory build | 13.7.0-1.1 | OPENSUSE-SU-2026:10944-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-13s390x | Advisory build | 13.7.0-1.1 | OPENSUSE-SU-2026:10944-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-13x86_64 | Advisory build | 13.7.0-1.1 | OPENSUSE-SU-2026:10944-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-14aarch64 | Advisory build | 14.6.0-1.1 | OPENSUSE-SU-2026:12447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-14ppc64le | Advisory build | 14.6.0-1.1 | OPENSUSE-SU-2026:12447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-14s390x | Advisory build | 14.6.0-1.1 | OPENSUSE-SU-2026:12447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-14x86_64 | Advisory build | 14.6.0-1.1 | OPENSUSE-SU-2026:12447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-9aarch64 | Advisory build | 9.8.0-1.1 | OPENSUSE-SU-2024:14244-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-9ppc64le | Advisory build | 9.8.0-1.1 | OPENSUSE-SU-2024:14244-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-9s390x | Advisory build | 9.8.0-1.1 | OPENSUSE-SU-2024:14244-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-9x86_64 | Advisory build | 9.8.0-1.1 | OPENSUSE-SU-2024:14244-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-docaarch64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-docppc64le | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-docs390x | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-docx86_64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-testaarch64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-testppc64le | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-tests390x | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-testx86_64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| Ubuntu | focal | ansible | Advisory build | 2.9.6+dfsg-1ubuntu0.1~esm1 | USN-5315-1 |
| Ubuntu | xenial | ansible | Advisory build | 2.0.0.2-2ubuntu1.3+esm1 | USN-5315-1 |
| Ubuntu | xenial | ansible-fireball | Advisory build | 2.0.0.2-2ubuntu1.3+esm1 | USN-5315-1 |
| Ubuntu | xenial | ansible-node-fireball | Advisory build | 2.0.0.2-2ubuntu1.3+esm1 | USN-5315-1 |
| Amazon Linux | AL2 | ansiblesrc | Listed in advisory | Not stated | ALAS2ANSIBLE2-2023-008 |
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'.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.0 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Ansible | 2.7.17 and prior (affected)2.8.9 and prior (affected)2.9.6 and prior (affected) | redhat · cna |
Weaknesses
1- CWE-377
References
8- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1733
- https://github.com/ansible/ansible/issues/67791
- [debian-lts-announce] 20200505 [SECURITY] [DLA 2202-1] ansible security update https://lists.debian.org/debian-lts-announce/2020/05/msg00005.html
- FEDORA-2020-3990f03ba3 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/
- FEDORA-2020-f80154b5b4 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/
- FEDORA-2020-1b6ce91e37 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/
- GLSA-202006-11 https://security.gentoo.org/glsa/202006-11
- DSA-4950 https://www.debian.org/security/2021/dsa-4950
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4e3bbd97d3e641db13ec47ba3a4265ebe574d5f23376954816b66e0881910efa
- Ingested
- 23 Sep 2026, 07:49:17 UTC
- Source record
- Official CVE record