CVE-2020-1740

Severity
4.7MEDIUM
EPSS
0.0%
top 91.82%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMar 16
Latest updateApr 7

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

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:NExploitability: 0.8 | Impact: 2.7

Affected Packages7 packages

PyPIansible2.8.0a12.8.11+2
NVDredhat/ansible2.8.02.8.11+2
Debianansible< 2.9.7+dfsg-1+3
NVDredhat/ansible_tower3.3.53.4.5+3
CVEListV5red_hat/ansible2.7.x, 2.8.x, 2.9.x

Also affects: Debian Linux 10.0, 8.0, Fedora 30, 31, 32

🔴Vulnerability Details

4
OSV
Exposure of Sensitive Information to an Unauthorized Actor and Insecure Temporary File in Ansible2021-04-07
GHSA
Exposure of Sensitive Information to an Unauthorized Actor and Insecure Temporary File in Ansible2021-04-07
CVEList
CVE-2020-1740: A flaw was found in Ansible Engine when using Ansible Vault for editing encrypted files2020-03-16
OSV
CVE-2020-1740: A flaw was found in Ansible Engine when using Ansible Vault for editing encrypted files2020-03-16

📋Vendor Advisories

2
Red Hat
ansible: secrets readable after ansible-vault edit2020-02-18
Debian
CVE-2020-1740: ansible - A flaw was found in Ansible Engine when using Ansible Vault for editing encrypte...2020

💬Community

6
Bugzilla
CVE-2020-27769 ImageMagick: outside the range of representable values of type 'float' at MagickCore/quantize.c2020-11-04
Bugzilla
CVE-2020-1740 ansible: secrets readable after ansible-vault edit [openstack-rdo]2020-02-27
Bugzilla
CVE-2020-1740 ansible: secrets readable after ansible-vault edit [fedora-all]2020-02-20
Bugzilla
CVE-2020-1740 ansible: secrets readable after ansible-vault edit [epel-all]2020-02-20
Bugzilla
CVE-2020-1735 ansible: path injection on dest parameter in fetch module2020-02-12