Vulnerability
CVE-2020-1740
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.
21 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
ALPINE-CVE-2020-1740
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…
-
DEBIAN-CVE-2020-1740
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…
-
DLA-2202-1
ansible - security update
-
DSA-4950-1
ansible - security update
-
GHSA-vcg8-98q8-g7mj
Exposure of Sensitive Information to an Unauthorized Actor and Insecure Temporary File in Ansible
-
OESA-2021-1349
ansible security update
-
OESA-2022-1950
ansible security update
-
PYSEC-2020-12
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…
-
RHSA-2020:1541
Red Hat Security Advisory: Ansible security and bug fix update (2.9.7)
-
RHSA-2020:1542
Red Hat Security Advisory: Ansible security and bug fix update (2.9.7)
-
RHSA-2020:1543
Red Hat Security Advisory: Ansible security and bug fix update (2.8.11)
-
RHSA-2020:1544
Red Hat Security Advisory: Ansible security and bug fix update (2.7.17)
-
SUSE-SU-2020:3309-1
Security update for ansible, ardana-ansible, ardana-cinder, ardana-glance, ardana-mq, ardana-nova, ardana-osconfig, crowbar-core, crowbar-openstack, documentation-suse-openstack-cloud, grafana,…
-
UBUNTU-CVE-2020-1740
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…
-
openSUSE-SU-2022:0081-1
Security update for ansible
-
openSUSE-SU-2024:14244-1
ansible-9-9.8.0-1.1 on GA media
-
openSUSE-SU-2024:14536-1
ansible-10-10.6.0-1.1 on GA media
-
openSUSE-SU-2025:15605-1
ansible-11-11.11.0-1.1 on GA media
-
openSUSE-SU-2025:15753-1
ansible-12-12.2.0-1.1 on GA media
-
openSUSE-SU-2026:10944-1
ansible-13-13.7.0-1.1 on GA media
-
openSUSE-SU-2026:12447-1
ansible-14-14.6.0-1.1 on GA media
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1740
- https://github.com/ansible/ansible/issues/67798
- https://lists.debian.org/debian-lts-announce/2020/05/msg00005.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/
- https://security.gentoo.org/glsa/202006-11
- https://www.debian.org/security/2021/dsa-4950