CVE-2020-10685
Ansible Tower vulnerability analysis and mitigation

Overview

A flaw was discovered in Ansible Engine affecting versions 2.7.x before 2.7.17, 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, 3.5.5, and 3.6.3. The vulnerability occurs when using modules that decrypt vault files such as assemble, script, unarchive, win_copy, aws_s3, or copy modules (NVD, Red Hat Bugzilla).

Technical details

The vulnerability stems from improper cleanup of temporary files containing decrypted vault content. When modules decrypt vault files, they create temporary files in the /tmp directory, leaving the decrypted content unprotected. On operating systems where /tmp is part of the root partition rather than tmpfs, the decrypted data remains on disk until the system reboots (Red Hat Bugzilla). The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N (NVD).

Impact

The primary impact of this vulnerability is the potential exposure of sensitive data. When the system is not running, decrypted vault content remains accessible on disk, potentially exposing confidential information that was intended to be encrypted. This is particularly concerning for systems where /tmp is not cleared between reboots (Red Hat Bugzilla).

Exploitability

The vulnerability requires local access to the system and can be exploited by examining the contents of the /tmp directory after Ansible operations involving vault-encrypted files. The risk is particularly relevant when the system is powered off, as the decrypted content remains on disk (Red Hat Bugzilla).

Mitigation and workarounds

The issue has been fixed in Ansible Engine versions 2.7.17, 2.8.11, and 2.9.7. The fix involves using local temp directories instead of system temp and ensuring proper cleanup of dataloader temp files. Prior to patching, the only mitigation is to manually remove temporary files after every Ansible run (GitHub PR, Red Hat Advisory).

Additional resources


SourceThis report was generated using AI

Related Ansible Tower vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2021-4112HIGH8.8
  • Ansible Tower logoAnsible Tower
  • cpe:2.3:a:redhat:ansible_tower
NoYesAug 25, 2022
CVE-2021-3583HIGH7.1
  • Ansible Tower logoAnsible Tower
  • cpe:2.3:a:redhat:ansible_tower
NoYesSep 22, 2021
CVE-2020-14327MEDIUM5.5
  • Ansible Tower logoAnsible Tower
  • cpe:2.3:a:redhat:ansible_tower
NoYesMay 27, 2021
CVE-2020-14329LOW3.3
  • Ansible Tower logoAnsible Tower
  • cpe:2.3:a:redhat:ansible_tower
NoYesMay 27, 2021
CVE-2020-14328LOW3.3
  • Ansible Tower logoAnsible Tower
  • cpe:2.3:a:redhat:ansible_tower
NoYesMay 27, 2021

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management