CVE-2020-1740

unknown
Published 2021-04-07 · Modified 2023-11-08
CVSS v3
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS v2
VIR risk

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.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2020-1740.html

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2020-1740

OS impact

OSVersionStatusFixed in
debian debianbookwormfixed2.9.7+dfsg-1
debian debianforkyfixed2.9.7+dfsg-1
debian debiansidfixed2.9.7+dfsg-1
debian debiantrixiefixed2.9.7+dfsg-1
debian debianbullseyefixed2.9.7+dfsg-1
suse slesaffected

Package impact

EcosystemPackageVulnerableFixed
python PyPIansible<2.7.172.7.17
python PyPIansible>=2.8.0a1,<2.8.112.8.11
python PyPIansible>=2.9.0a1,<2.9.72.9.7
python PyPIansible>=2.9.0,<2.9.62.7.17

References

Verify integrity in audit chain (admin only). AS-IS.