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 | alpine-linux-upgrade-ansiblealpine-linux-upgrade-ansible-base | Oct 1, 2024 | Mar 11, 2020 | |
| Amazon Linux Ami 2 | amazon-linux-ami-2-upgrade-ansibleamazon-linux-ami-2-upgrade-ansible-doc | Sep 28, 2023 | Mar 11, 2020 | |
| Debian | debian-upgrade-ansible | May 7, 2020 | Mar 11, 2020 | |
| Gentoo Linux | gentoo-linux-upgrade-app-admin-ansible | Jun 15, 2020 | Mar 11, 2020 | |
| Suse | — | suse-upgrade-ansiblesuse-upgrade-ansible-docsuse-upgrade-ansible-test | Mar 19, 2022 | Mar 11, 2020 |
| Ubuntu | ubuntu-pro-upgrade-ansible | Mar 22, 2023 | Mar 11, 2020 | |
| Vmware Photon_os | vmware-photon_os_update_tdnf | 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