ADVISORIES

GitHub Advisory Database

GHSA-h39q-95q5-9jfp

OS Command Injection in ansible

Details

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.

Affected packages

EcosystemPackageAffected versions
PyPIansible
From 2.10.0a1 before 2.10.0rc1 (fixed in 2.10.0rc1)
PyPIansible
From 2.9.0a1 before 2.9.11 (fixed in 2.9.11)
PyPIansible
All versions before 2.8.13 (fixed in 2.8.13)

References