CVE-2020-10684
HIGH 7.1CVSS 3.1Code Injection, Race Condition, and Execution with Unnecessary Privileges in Ansible
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.
- Published
- 24 Mar 2020
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-250CWE-362CWE-862CWE-94
- Also known as
- GHSA-p62g-jhg6-v3rqPYSEC-2020-207
- Sources
- NVDJSONOSV GHSA-p62g-jhg6-v3rqJSONOSV PYSEC-2020-207JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | HIGH 7.9 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.6 | AV:L/AC:L/Au:N/C:N/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | ansiblecpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* |
>= 2.7.0, < 2.7.17 | 2.7.17 |
| NVD | redhat | ansiblecpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* |
>= 2.8.0, < 2.8.9 | 2.8.9 |
| NVD | redhat | ansiblecpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* |
>= 2.9.0, < 2.9.6 | 2.9.6 |
| NVD | redhat | ansible_towercpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:* |
<= 3.3.5 | |
| NVD | redhat | ansible_towercpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:* |
>= 3.5.0, <= 3.5.5 | |
| NVD | redhat | ansible_towercpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:* |
>= 3.6.0, <= 3.6.3 | |
| NVD | redhat | openstackcpe:2.3:a:redhat:openstack:10:*:*:*:*:*:*:* |
= 10 | |
| NVD | redhat | openstackcpe:2.3:a:redhat:openstack:13:*:*:*:*:*:*:* |
= 13 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:* |
= 30 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* |
= 31 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* |
= 32 | |
| OSV | PyPI | ansible | >= 2.7.0a1, < 2.7.17 | 2.7.17 |
| OSV | PyPI | ansible | >= 2.8.0a1, < 2.8.11 | 2.8.11 |
| OSV | PyPI | ansible | >= 2.9.0a1, < 2.9.7 | 2.9.7 |
| OSV | PyPI | ansible | >= 2.7.0, < 2.7.17; >= 2.8.0, < 2.8.9; >= 2.9.0, < 2.9.6 | 2.7.17, 2.8.9, 2.9.6 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10684 · Issue Tracking, Vendor Advisory, WEB, REPORT
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/
- https://security.gentoo.org/glsa/202006-11 · Third Party Advisory, WEB, ADVISORY
- https://www.debian.org/security/2021/dsa-4950 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-10684 · ADVISORY
- https://github.com/ansible/ansible/commit/0b4788a71fc7d24ffa957a94ee5e23d6a9733ab0 · WEB
- https://github.com/ansible/ansible/commit/1d0d2645eed36ac4e17052ab4eacf240132d96fb · WEB
- https://github.com/ansible/ansible/commit/5eabf7bb93c9bfc375b806a2b1f623d650cddc2b · WEB
- https://github.com/ansible/ansible/commit/a9d2ceafe429171c0e2ad007058b88bae57c74ce · WEB
- https://github.com/advisories/GHSA-p62g-jhg6-v3rq · ADVISORY
- https://github.com/ansible/ansible · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-207.yaml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB · WEB
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 24 Mar 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 24 Mar 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Apr 2021)