Medium severity · published Mar 16, 2020
CVE-2020-1740
A flaw was found in Ansible Engine when using Ansible Vault for editing encrypted files
4.7
CVSS
0.4%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Local
Complexity
High
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 30% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AN
Ansible · Redhat
before 2.7.17; 2.8.0 before 2.8.11; 2.9.0 before 2.9.7 · source: NVD
AT
Ansible Tower · Redhat
through 3.3.4; 3.3.5 through 3.4.5; 3.5.0 through 3.5.5; 3.6.0 through 3.6.3 · source: NVD
CM
Cloudforms Management Engine · Redhat
5.0 · source: NVD
DL
Debian Linux · Debian
8.0; 10.0 · source: NVD
FE
Fedora · Fedoraproject
30; 31; 32 · source: NVD
OP
Openstack · Redhat
13 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-1740
CVE.org
https://www.cve.org/CVERecord?id=CVE-2020-1740
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1740
Issue Tracking
https://github.com/ansible/ansible/issues/67798
Mailing List
https://lists.debian.org/debian-lts-announce/2020/05/msg00005.html
lists.fedoraproject.org
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/
More from Debian Linux
10.0
CVE-2025-32433
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2026-111497
Out-of-Bounds Write in Google Brotli Decoder
