{"cve":"CVE-2020-1740","nvd":{"published":"2020-03-16T16:15:14.217","modified":"2026-06-17T03:02:18.673","status":"Modified","description":"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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","score":4.7},"cwes":["CWE-377","CWE-200"],"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/"],"products":["debian:debian_linux","fedoraproject:fedora","redhat:ansible","redhat:ansible_tower","redhat:cloudforms_management_engine","redhat:openstack"],"source":"nvd","synced_at":"2026-10-19T21:03:08.679916934+00:00"},"epss":{"cve":"CVE-2020-1740","score":0.00363,"percentile":0.30112,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-vcg8-98q8-g7mj","url":"https://osv.dev/vulnerability/GHSA-vcg8-98q8-g7mj","summary":"Exposure of Sensitive Information to an Unauthorized Actor and Insecure Temporary File in Ansible","modified":"2024-09-04T20:45:53.108507Z","packages":[{"ecosystem":"PyPI","name":"ansible","purl":"pkg:pypi/ansible","ranges":["<2.7.17"],"fixed":["2.7.17"]},{"ecosystem":"PyPI","name":"ansible","purl":"pkg:pypi/ansible","ranges":[">=2.8.0a1 <2.8.11"],"fixed":["2.8.11"]},{"ecosystem":"PyPI","name":"ansible","purl":"pkg:pypi/ansible","ranges":[">=2.9.0a1 <2.9.7"],"fixed":["2.9.7"]}]},{"id":"PYSEC-2020-12","url":"https://osv.dev/vulnerability/PYSEC-2020-12","summary":"","modified":"2023-11-08T04:02:41.272964Z","packages":[{"ecosystem":"PyPI","name":"ansible","purl":"pkg:pypi/ansible","ranges":["<2.7.17",">=2.8.0 <2.8.9",">=2.9.0 <2.9.6"],"fixed":["2.7.17","2.8.9","2.9.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}