CVE-2020-1733
11.03.2020, 19:15
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'.
Vendor | Product | Version |
---|---|---|
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 |
debian | debian_linux | 8.0 |
debian | debian_linux | 10.0 |
𝑥
= Vulnerable software versions

Debian Releases

Ubuntu Releases
Ubuntu Product | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ansible |
|
Common Weakness Enumeration
- CWE-377 - Insecure Temporary FileCreating and using insecure temporary files can leave application and system data vulnerable to attack.
- CWE-362 - Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')The program contains a code sequence that can run concurrently with other code, and the code sequence requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence that is operating concurrently.
References