Vulnerability · Published Mar 24, 2020 · Assigned by redhat

CVE-2020-10684

High 7.9

In plain English

A high-severity code injection in Ansible from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.9High
Exploit odds (30 days)0.3%top 73.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ansible2.9.7+dfsg-1DEBIAN-CVE-2020-10684
Debian:13ansible2.9.7+dfsg-1DEBIAN-CVE-2020-10684
Debian:14ansible2.9.7+dfsg-1DEBIAN-CVE-2020-10684
PyPIansible2.7.17GHSA-p62g-jhg6-v3rq
PyPIansible2.7.17, 2.8.9, 2.9.6PYSEC-2020-207
PyPIansible2.8.11GHSA-p62g-jhg6-v3rq
PyPIansible2.9.7GHSA-p62g-jhg6-v3rq

Affected products (as reported)

VendorProductVersions
Red Hat Ansible all Ansible 2.7.x versions prior to 2.7.17all Ansible 2.8.x versions prior to 2.8.9all Ansible 2.9.x versions prior to 2.9.6

Weakness: CWE-94, CWE-862, CWE-362 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H

References