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'.
CVSS Details
- CVSS 3.1 Base Score: 5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade ansible-baseUpgrade ansible | Oct 1, 2024 | Mar 11, 2020 |
| Amazon Linux Ami 2 | — | Upgrade ansibleUpgrade ansible-doc | Sep 28, 2023 | Mar 11, 2020 |
| Debian | — | Upgrade ansible | May 7, 2020 | Mar 11, 2020 |
| Gentoo Linux | — | Upgrade app-admin/ansible. | Jun 15, 2020 | Mar 11, 2020 |
| Suse | — | Upgrade ansible-testUpgrade ansible-docUpgrade ansible | Mar 19, 2022 | Mar 11, 2020 |
| Ubuntu | — | Upgrade ansible (Ubuntu Pro) | Mar 22, 2023 | Mar 11, 2020 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Mar 11, 2020 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub