CVEvulnerability
CVE-2020-1740
4.7 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2020-03-16
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 3.9 LOW — CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
- CVSS 3.1 ([email protected])
- 4.7 MEDIUM — CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- CVSS 2.0 ([email protected])
- 1.9 LOW — AV:L/AC:M/Au:N/C:P/I:N/A:N
- Weaknesses
- CWE-200, CWE-377
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.
Affected configurations
• redhat ansible (< 2.7.17)
• redhat ansible (>= 2.8.0 < 2.8.11)
• redhat ansible (>= 2.9.0 < 2.9.7)
• redhat ansible tower (<= 3.3.4)
• redhat ansible tower (>= 3.3.5 <= 3.4.5)
• redhat ansible tower (>= 3.5.0 <= 3.5.5)
• redhat ansible tower (>= 3.6.0 <= 3.6.3)
• redhat cloudforms management engine 5.0
• redhat openstack 13
• debian debian linux 8.0
• debian debian linux 10.0
• fedoraproject fedora 30
• fedoraproject fedora 31
• fedoraproject fedora 32
Related
Weakness · not in database (1)
Weakness · CWE (1)
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1740 Issue Tracking, Vendor Advisory
- https://github.com/ansible/ansible/issues/67798 Issue Tracking, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/05/msg00005.html Mailing List, Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/ lists.fedoraproject.org
- https://security.gentoo.org/glsa/202006-11 Third Party Advisory
- https://www.debian.org/security/2021/dsa-4950 Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1740 Issue Tracking, Vendor Advisory
- https://github.com/ansible/ansible/issues/67798 Issue Tracking, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/05/msg00005.html Mailing List, Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/ lists.fedoraproject.org
- https://security.gentoo.org/glsa/202006-11 Third Party Advisory
- https://www.debian.org/security/2021/dsa-4950 Third Party Advisory