CVE-2020-1740

Low

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.

SeverityLow
CVSS3.9
Exploit probability—
ProductRedhat Ansible
PublishedMar 16, 2020
First seenMar 16, 2020
Weakness typeCWE-377CWE-377

How to fix

Affected products

ProductAffected versionsFixed in
redhat ansiblev < 2.7.17, 2.8.0 ≤ v < 2.8.11, 2.9.0 ≤ v < 2.9.72.7.17, 2.8.11, 2.9.7
redhat ansible_towerv ≤ 3.3.4, 3.3.5 ≤ v ≤ 3.4.5, 3.5.0 ≤ v ≤ 3.5.5, 3.6.0 ≤ v ≤ 3.6.3—
redhat cloudforms_management_engine5.0—
redhat openstack13—
debian debian_linux8.0, 10.0—
fedoraproject fedora30, 31, 32—
ansiblePyPIv < 2.7.17, 2.8.0a1 ≤ v < 2.8.11, 2.9.0a1 ≤ v < 2.9.7, 2.8.0 ≤ v < 2.8.9, 2.9.0 ≤ v < 2.9.62.7.17, 2.8.11, 2.9.7, 2.8.9, 2.9.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.