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'.
How to fix
- redhat ansible2.8.8 or later
- ansible2.7.17, 2.8.11, 2.9.7, 2.8.8, 2.9.6 or later
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/
- security.gentoo.org/glsa/202006-11
- debian.org/security/2021/dsa-4950
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat ansible | v ≤ 2.7.16, 2.8.0 ≤ v < 2.8.8, 2.9.0 ≤ v ≤ 2.9.5 | 2.8.8 |
| redhat ansible_tower | v ≤ 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_engine | 5.0 | — |
| redhat openstack | 13 | — |
| fedoraproject fedora | 30, 31, 32 | — |
| debian debian_linux | 8.0, 10.0 | — |
| ansiblePyPI | v < 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.6 | 2.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.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.