OS Command Injection in ansible
High severity
GitHub Reviewed
Published
Feb 9, 2022
to the GitHub Advisory Database
•
Updated Sep 10, 2024
Package
Affected versions
>= 2.10.0a1, < 2.10.0rc1
>= 2.9.0a1, < 2.9.11
< 2.8.13
Patched versions
2.10.0rc1
2.9.11
2.8.13
Description
Published by the National Vulnerability Database
Mar 3, 2020
Reviewed
Apr 2, 2021
Published to the GitHub Advisory Database
Feb 9, 2022
Last updated
Sep 10, 2024
A flaw was found in the pipe lookup plugin of ansible. Arbitrary commands can be run, when the pipe lookup plugin uses
subprocess.Popen()
withshell=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.References