# CVE-2020-10684: Code Injection, Race Condition, and Execution with Unnecessary Privileges in Ansible

- Severity: High 7.9 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2020-03-24T00:00:00.000Z
- Modified: 2026-06-17T02:48:15.097Z
- Also known as: GHSA-p62g-jhg6-v3rq, PYSEC-2020-207
- Weaknesses: CWE-94, CWE-250, CWE-362, CWE-862
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- 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
- ansible (PyPI): from 2.7.0a1 before 2.7.17; from 2.8.0a1 before 2.8.11; from 2.9.0a1 before 2.9.7; from 2.7.0 before 2.7.17; from 2.8.0 before 2.8.9; from 2.9.0 before 2.9.6
- redhat ansible: from 2.7.0 before 2.7.17; from 2.8.0 before 2.8.9; from 2.9.0 before 2.9.6
- redhat ansible_tower: up to 3.3.5; from 3.5.0 up to 3.5.5; from 3.6.0 up to 3.6.3
- redhat openstack: 10; 13
- debian debian_linux: 10.0
- fedoraproject fedora: 30; 31; 32

## Every score

- redhat: CVSS:3.1 7.9 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H`
- GitHub: CVSS:3.1 7.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 3.6 Low `AV:L/AC:L/Au:N/C:N/I:P/A:P`

## References

- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202006-11> (advisory, third-party-advisory, vendor-advisory, web)
- <https://www.debian.org/security/2021/dsa-4950> (third-party-advisory, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10684> (issue-tracking, report, vendor-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)
- <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/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/> (web)

## Sources

- CVE List: [CVE-2020-10684](https://www.cve.org/CVERecord?id=CVE-2020-10684), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-p62g-jhg6-v3rq](https://github.com/advisories/GHSA-p62g-jhg6-v3rq), CC-BY-4.0, modified 2024-11-27
- NVD: [CVE-2020-10684](https://nvd.nist.gov/vuln/detail/CVE-2020-10684), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-207](https://osv.dev/vulnerability/PYSEC-2020-207), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-10684 · Whole record: https://cve.day/CVE-2020-10684.json · Rebuilt by cve.day 2026-11-25T22:57:51.623Z
