A flaw was found in Ansible Engine, all versions 2.7.x, 2.8.x and 2.9.x prior to 2.7.17, 2.8.9 and 2.9.6 respectively, when using ansible_facts as a subkey of itself and promoting it to a variable when inject is enabled, overwriting the ansible_facts after the clean. An attacker could take advantage of this by altering the ansible_facts, such as ansible_hosts, users and any other key data which would lead into privilege escalation or code injection.
{
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"last_affected": "3.3.5"
},
{
"introduced": "3.5.0"
},
{
"last_affected": "3.5.5"
},
{
"introduced": "3.6.0"
},
{
"last_affected": "3.6.3"
}
],
"source": "CPE_RANGE",
"vendor_product": "redhat:ansible_tower"
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
}
],
"source": "CPE_STRING",
"vendor_product": "debian:debian_linux"
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "30"
},
{
"last_affected": "30"
},
{
"introduced": "31"
},
{
"last_affected": "31"
},
{
"introduced": "32"
},
{
"last_affected": "32"
}
],
"source": "CPE_STRING",
"vendor_product": "fedoraproject:fedora"
},
{
"cpes": [
"cpe:2.3:a:redhat:openstack:10:*:*:*:*:*:*:*",
"cpe:2.3:a:redhat:openstack:13:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "10"
},
{
"last_affected": "10"
},
{
"introduced": "13"
},
{
"last_affected": "13"
}
],
"source": "CPE_STRING",
"vendor_product": "redhat:openstack"
}
]
}{
"cpe": "cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "2.7.0"
},
{
"fixed": "2.7.17"
},
{
"introduced": "2.8.0"
},
{
"fixed": "2.8.9"
},
{
"introduced": "2.9.0"
},
{
"fixed": "2.9.6"
}
],
"source": "CPE_RANGE"
}