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.
{
"unresolved_ranges": [
{
"vendor_product": "redhat:ansible_tower",
"cpes": [
"cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"last_affected": "3.3.4"
}
],
"source": "CPE_RANGE"
},
{
"vendor_product": "redhat:ansible_tower",
"cpes": [
"cpe:2.3:a:redhat:ansible_tower:3.4.5:*:*:*:*:*:*:*",
"cpe:2.3:a:redhat:ansible_tower:3.5.5:*:*:*:*:*:*:*",
"cpe:2.3:a:redhat:ansible_tower:3.6.3:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"last_affected": "3.4.5"
},
{
"last_affected": "3.5.5"
},
{
"last_affected": "3.6.3"
}
],
"source": "CPE_STRING"
}
]
}{
"cpe": [
"cpe:2.3:a:redhat:ansible_engine:*:*:*:*:*:*:*:*",
"cpe:2.3:a:redhat:ansible_engine:2.8.8:*:*:*:*:*:*:*",
"cpe:2.3:a:redhat:ansible_engine:2.9.5:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "2.7.16"
},
{
"last_affected": "2.8.8"
},
{
"last_affected": "2.9.5"
}
],
"source": [
"CPE_RANGE",
"CPE_STRING"
]
}