CVE-2020-1733

Name
CVE-2020-1733
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'.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
Issue Tracking https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1733
Exploit https://github.com/ansible/ansible/issues/67791
Third Party Advisory https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/
Third Party Advisory https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/
Third Party Advisory https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/
Third Party Advisory https://lists.debian.org/debian-lts-announce/2020/05/msg00005.html
GENTOO https://security.gentoo.org/glsa/202006-11
DEBIAN https://www.debian.org/security/2021/dsa-4950

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* ansible >= None <= 2.7.16
cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* ansible >= 2.8.0 < 2.8.8
cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* ansible >= 2.9.0 <= 2.9.5
cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:* ansible_tower >= None <= 3.3.4
cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:* ansible_tower >= 3.3.5 <= 3.4.5
cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:* ansible_tower >= 3.5.0 <= 3.5.5
cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:* ansible_tower >= 3.6.0 <= 3.6.3
cpe:2.3:a:redhat:cloudforms_management_engine:5.0:*:*:*:*:*:*:* cloudforms_management_engine == None == 5.0
cpe:2.3:a:redhat:openstack:13.0:*:*:*:*:*:*:* openstack == None == 13.0
cpe:2.3:a:redhat:openstack:13:*:*:*:*:*:*:* openstack == None == 13

Vulnerable and fixed packages

Source package Branch Version Maintainer Status