OS Command Injection in ansible
Red Hat Ansible
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ansible PyPI |
|
|
Red Hat Ansible
| Product | Affected | Fixed in |
|---|---|---|
| ansible PyPI |
|
|
A flaw was found in the pipe lookup plugin of ansible. Arbitrary commands can be run, when the pipe lookup plugin uses subprocess.Popen() with shell=True, by overwriting ansible facts and the variable is not escaped by quote plugin. An attacker could take advantage and run arbitrary commands by overwriting the ansible facts.
From the CVE record · redhat
The pipe lookup plugin can run arbitrary commands when an attacker overwrites Ansible facts and the resulting variable is not escaped by the quote plugin. The plugin uses subprocess.Popen() with shell=True. The input does not specify network or local access requirements, authentication requirements, or user interaction.
Teams running the PyPI ansible package should check versions >=2.10.0a1 and <2.10.0rc1, >=2.9.0a1 and <2.9.11, <2.8.13, or <2.7.17.