FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

ansible - Vault password leak from temporary file

Affected packages
ansible < 2.8.9
ansible27 < 2.7.17
ansible26 < 2.7.17
ansible25 < 2.7.17
ansible24 < 2.7.17
ansible23 < 2.7.17

Details

VuXML ID ae2e7871-80f6-11ea-bafd-815569f3852d
Discovery 2020-02-12
Entry 2020-04-17

Borja Tarraso reports:

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.

References

CVE Name CVE-2020-1740
URL https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1740
URL https://github.com/ansible/ansible/issues/67798