A flaw was found in Ansible Engine when using Ansible Vault for editing encrypted files. When a user executes "ansible-vault edit", another user on the same computer can read the old and new secret, as it is created in a temporary file with mkstemp and the returned file descriptor is closed and the method write_data is called to write the existing secret in the file. This method will delete the file before recreating it insecurely. All versions in 2.7.x, 2.8.x and 2.9.x branches are believed to be vulnerable.
CVSS Details
- CVSS 3.1 Base Score: 3.9
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade ansibleUpgrade ansible-base | Oct 1, 2024 | Mar 16, 2020 |
| Amazon Linux Ami 2 | — | Upgrade ansibleUpgrade ansible-doc | Sep 28, 2023 | Mar 16, 2020 |
| Debian | — | Upgrade ansible | May 7, 2020 | Mar 16, 2020 |
| Freebsd | — | Upgrade ansible27Upgrade ansible25Upgrade ansible24Upgrade ansibleUpgrade ansible26Upgrade ansible23 | Apr 18, 2020 | Apr 17, 2020 |
| Gentoo Linux | — | Upgrade app-admin/ansible. | Jun 15, 2020 | Mar 16, 2020 |
| Suse | — | Upgrade ansible-docUpgrade ansibleUpgrade ansible-test | Mar 19, 2022 | Mar 16, 2020 |
| Ubuntu | — | No solution exists | Jun 26, 2025 | Mar 16, 2020 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Mar 16, 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