Rapid7 Vulnerability & Exploit Database

FreeBSD: VID-AE2E7871-80F6-11EA-BAFD-815569F3852D (CVE-2020-1740): ansible - Vault password leak from temporary file

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

FreeBSD: VID-AE2E7871-80F6-11EA-BAFD-815569F3852D (CVE-2020-1740): ansible - Vault password leak from temporary file

Severity
2
CVSS
(AV:L/AC:M/Au:N/C:P/I:N/A:N)
Published
02/12/2020
Created
04/21/2020
Added
04/18/2020
Modified
04/18/2020

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.

Solution(s)

  • freebsd-upgrade-package-ansible
  • freebsd-upgrade-package-ansible23
  • freebsd-upgrade-package-ansible24
  • freebsd-upgrade-package-ansible25
  • freebsd-upgrade-package-ansible26
  • freebsd-upgrade-package-ansible27

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;