Vulnerability · Published Mar 16, 2020 · Assigned by redhat

CVE-2020-1740

Low 3.9

In plain English

A low-severity security flaw in ansible from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.9Low
Exploit odds (30 days)0.4%top 70.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ansible2.9.7+dfsg-1DEBIAN-CVE-2020-1740
Debian:13ansible2.9.7+dfsg-1DEBIAN-CVE-2020-1740
Debian:14ansible2.9.7+dfsg-1DEBIAN-CVE-2020-1740
PyPIansible2.7.17GHSA-vcg8-98q8-g7mj
PyPIansible2.7.17, 2.8.9, 2.9.6PYSEC-2020-12
PyPIansible2.8.11GHSA-vcg8-98q8-g7mj
PyPIansible2.9.7GHSA-vcg8-98q8-g7mj

Affected products (as reported)

VendorProductVersions
Red Hat ansible 2.7.x, 2.8.x, 2.9.x

Weakness: CWE-377 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N

References