VDB

CVE-2020-10684

CVE-2020-10684 PUBLISHED CVSS 7.9 HIGH

Code Injection, Race Condition, and Execution with Unnecessary Privileges in Ansible

Reported by redhat · Published March 24, 2020

ansible is fixed in 2.9.7, 2.9.6, 2.8.11 and 2 more (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ansiblePyPI2.9.7, 2.9.6, 2.8.11, 2.8.9, 2.7.17
ansible_towerredhat3.6.3, 3.5.5, 3.3.5
ansibleredhat2.9.6, 2.8.9, 2.7.17

Risk scores

CVSS 3.1
7.9
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H

Affected products

VendorProductVersions
Red HatAnsibleall Ansible 2.7.x versions prior to 2.7.17, all Ansible 2.8.x versions prior to 2.8.9, all Ansible 2.9.x versions prior to 2.9.6
Red HatAnsible2.7.x, 2.8.x, 2.9.x

Timeline

  • Mar 24, 2020 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • May 10, 2024 VulnCheck KEV Exploitation
  • Aug 15, 2025 PoC Published
  • Mar 9, 2026 Security Advisory (11 in total, the first dated here)
  • Mar 17, 2026 Distribution Patch (5 in total, the first dated here)
  • Sep 6, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2020-10684
vulnetix vdb fixes CVE-2020-10684

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-10684/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›