CVE-2020-1740

Published: 16 March 2020

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.

Priority

Medium

CVSS 3 base score: 4.7

Status

Package Release Status
ansible
Launchpad, Ubuntu, Debian
Upstream
Released (2.9.7+dfsg-1, 1.7.2+dfsg-2+deb9u3)
Ubuntu 21.10 (Impish Indri) Not vulnerable
(2.9.7+dfsg-1)
Ubuntu 21.04 (Hirsute Hippo) Not vulnerable
(2.9.7+dfsg-1)
Ubuntu 20.04 LTS (Focal Fossa) Needed

Ubuntu 18.04 LTS (Bionic Beaver) Needed

Ubuntu 16.04 ESM (Xenial Xerus) Ignored
(end of standard support, was needed)
Ubuntu 14.04 ESM (Trusty Tahr) Needed