PYSEC-2020-1: Medium severity Ansible Ansible Engine vulnerability
A flaw was found in Ansible Engine affecting Ansible Engine versions 2.7.x before 2.7.17 and 2.8.x before 2.8.11 and 2.9.x before 2.9.7 as well as Ansible Tower before and including versions 3.4.5 and 3.5.5 and 3.6.3 when using modules which decrypts vault files such as assemble, script, unarchive, wincopy, awss3 or copy modules. The temporary directory is created in /tmp leaves the s ts unencrypted. On Operating Systems which /tmp is not a tmpfs but part of the root partition, the directory is only cleared on boot and the decryp emains when the host is switched off. The system will be vulnerable when the system is not running. So decrypted data must be cleared as soon as possible and the data which normally is encrypted ble.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Ansible Engineto a version that resolves this vulnerability.Fixed in 2.7.17 - Upgrade
Upgrade
Ansible Engineto a version that resolves this vulnerability.Fixed in 2.8.11 - Upgrade
Upgrade
Ansible Engineto a version that resolves this vulnerability.Fixed in 2.9.7 - Operational
Clear decrypted data from /tmp as soon as possible, particularly before the host is switched off.