CVE-2020-10684
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ansible | PyPI | 2.9.7, 2.9.6, 2.8.11, 2.8.9, 2.7.17 |
| ansible_tower | redhat | 3.6.3, 3.5.5, 3.3.5 |
| ansible | redhat | 2.9.6, 2.8.9, 2.7.17 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Ansible | all 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 Hat | Ansible | 2.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
- FEDORA-2020-1b6ce91e37 vendor-advisory
- FEDORA-2020-3990f03ba3 vendor-advisory
- FEDORA-2020-f80154b5b4 vendor-advisory
- GLSA-202006-11 vendor-advisory
- DSA-4950 vendor-advisory