CVE-2020-1740
Exposure of Sensitive Information to an Unauthorized Actor and Insecure Temporary File in Ansible
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.
How to fix CVE-2020-1740
To remediate CVE-2020-1740, upgrade the affected package to a fixed version below.
- —upgrade to 2.8.11-r0 or later
- —upgrade to 2.9.7-r0 or later
- —upgrade to 2.9.7+dfsg-1 or later
- —upgrade to 2.7.17 or later
- —upgrade to 2.7.17 or later
Is CVE-2020-1740 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- from 0, < 2.8.11-r0
- from 0, < 2.9.7-r0
- from 0, < 2.9.7+dfsg-1
- from 0, < 2.7.17
- from 0, < 2.7.17, >= 2.8.0, < 2.8.9, >= 2.9.0, < 2.9.6
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | MEDIUM4.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |