CVE-2020-1738
Ansible Tower vulnerability analysis and mitigation

Overview

A flaw was discovered in Ansible Engine when the module package or service is used and the parameter 'use' is not specified. If a previous task is executed with a malicious user, the module sent can be selected by the attacker using the ansible facts file. All versions in 2.7.x, 2.8.x and 2.9.x branches are affected (NVD, Red Hat Bugzilla).

Technical details

The vulnerability occurs when the package or service modules use facts to determine the module name to run if the 'use' parameter is not specified. The ansible_facts['pkg_mgr'] and ansible_facts['service_mgr'] facts could be set to another module name or a module name installed in a collection, potentially allowing arbitrary code execution on the managed node. The vulnerability has a CVSS v3.1 Base Score of 3.9 (LOW) with vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L (NVD).

Impact

If exploited, this vulnerability could allow an attacker to execute arbitrary code on the managed node through manipulation of ansible facts. The impact is considered low due to the required conditions and limited scope of the vulnerability (Red Hat Bugzilla).

Mitigation and workarounds

The recommended mitigation is to specify the parameter 'use' when possible on the package and service modules. Users should avoid using Ansible Collections on Ansible 2.8.9 or 2.7.16 (and any previous versions) as they do not reject python with no path. This issue has been fixed in Ansible Engine version 2.9.7 (Red Hat Bugzilla, Gentoo Security).

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 TowerAnsible Tower
  • cpe:2.3:a:redhat:ansible_tower
NoYesAug 25, 2022
CVE-2021-3583HIGH7.1
  • Ansible TowerAnsible Tower
  • ansible-doc
NoYesSep 22, 2021
CVE-2020-14327MEDIUM5.5
  • Ansible TowerAnsible Tower
  • cpe:2.3:a:redhat:ansible_tower
NoYesMay 27, 2021
CVE-2020-14329LOW3.3
  • Ansible TowerAnsible Tower
  • cpe:2.3:a:redhat:ansible_tower
NoYesMay 27, 2021
CVE-2020-14328LOW3.3
  • Ansible TowerAnsible 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