{"schema_version":"1.8.0","id":"CVE-2020-1740","published":"2020-03-16T16:15:14.217Z","modified":"2026-08-07T11:31:33.922645547Z","aliases":["GHSA-vcg8-98q8-g7mj","PYSEC-2020-12"],"related":["SUSE-SU-2020:3309-1","openSUSE-SU-2022:0081-1","openSUSE-SU-2024:10615-1","openSUSE-SU-2024:14244-1","openSUSE-SU-2024:14536-1","openSUSE-SU-2025:15605-1","openSUSE-SU-2025:15753-1","openSUSE-SU-2026:10944-1"],"details":"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ansible/ansible","events":[{"introduced":"0"},{"fixed":"f78a5b184c6f8b1bc774ed795a2bd36d38f6506b"},{"introduced":"2611867fd1dc387ceaa0ffb8ce0f030aafc2a859"},{"fixed":"b9ebc0ceefd2bad292b75f5e2e5f7340fd23e896"},{"introduced":"24325a05dfb9104d6d4ec8b488b89e07c2e6d376"},{"fixed":"ff7bbbcaf1e8f434432075bc9c55626a9dd3091d"}],"database_specific":{"cpe":"cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.7.17"},{"introduced":"2.8.0"},{"fixed":"2.8.11"},{"introduced":"2.9.0"},{"fixed":"2.9.7"}],"source":"CPE_RANGE"}}],"versions":["v2.8.10","v2.9.6","v2.8.9","v2.9.5","v2.9.4","v2.9.3","v2.8.8","v2.7.16","v2.9.2","v2.9.1","v2.8.7","v2.7.15","v2.9.0","v2.8.6","v2.7.14","v2.8.5","v2.7.13","v2.8.4","v2.8.3","v2.7.12","v2.8.2","v2.8.1","v2.7.11","v2.8.0","v2.7.10","v2.7.9","v2.7.8","v2.7.7","v2.7.6","v2.7.5","v2.7.4","v2.7.3","v2.7.2","v2.7.1","v2.7.0","v2.7.0rc4","v2.7.0rc3","v2.7.0rc2","v2.7.0rc1","v2.7.0b1","v2.7.0.a1","v2.6.0a1","v2.0.0-0.5.beta3","v2.0.0-0.4.beta2","v2.0.0-0.3.beta1","v2.0.0-0.2.alpha2","v2.0.0-0.1.alpha1","v1.6.0","v1.4.0","v1.2","v1.1","v1.0","0.7","0.3","0.0.1","0.01"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-1740.json"}}],"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2020/05/msg00005.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202006-11"},{"type":"ADVISORY","url":"https://www.debian.org/security/2021/dsa-4950"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1740"},{"type":"REPORT","url":"https://github.com/ansible/ansible/issues/67798"}],"database_specific":{"unresolved_ranges":[{"cpes":["cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*"],"extracted_events":[{"last_affected":"3.3.4"},{"introduced":"3.3.5"},{"last_affected":"3.4.5"},{"introduced":"3.5.0"},{"last_affected":"3.5.5"},{"introduced":"3.6.0"},{"last_affected":"3.6.3"}],"source":"CPE_RANGE","vendor_product":"redhat:ansible_tower"},{"cpes":["cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"8.0"},{"last_affected":"8.0"},{"introduced":"10.0"},{"last_affected":"10.0"}],"source":"CPE_STRING","vendor_product":"debian:debian_linux"},{"cpes":["cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"30"},{"last_affected":"30"},{"introduced":"31"},{"last_affected":"31"},{"introduced":"32"},{"last_affected":"32"}],"source":"CPE_STRING","vendor_product":"fedoraproject:fedora"},{"cpes":["cpe:2.3:a:redhat:cloudforms_management_engine:5.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"5.0"},{"last_affected":"5.0"}],"source":"CPE_STRING","vendor_product":"redhat:cloudforms_management_engine"},{"cpes":["cpe:2.3:a:redhat:openstack:13:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"13"},{"last_affected":"13"}],"source":"CPE_STRING","vendor_product":"redhat:openstack"}]},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}