{"id":"CVE-2020-10684","aliases":["CVE-2020-10684","GHSA-p62g-jhg6-v3rq","PYSEC-2020-207"],"related":[],"kind":"vulnerability","state":"published","title":"Code Injection, Race Condition, and Execution with Unnecessary Privileges in Ansible","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.11, and 2.9.7 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se descubrió un fallo en Ansible Engine, todas las versiones 2.7.x, 2.8.x y versiones 2.9.x anteriores a las versiones  2.7.17, 2.8.9 y 2.9.6 respectivamente, cuando se usa la función ansible_facts como una subclave de sí mismo y se promociona hacia una variable cuando la inyección está habilitada, sobrescribe los ansible_facts después de la limpieza. Un atacante podría tomar ventaja de esto alterando la función ansible_facts, como ansible_hosts, los usuarios y cualquier otro dato clave que conllevar a una escalada de privilegios o una inyección de código.","source":"nvd"}],"published":"2020-03-24T00:00:00.000Z","modified":"2026-06-17T02:48:15.097Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H","score":7.9,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H","score":7.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:N/I:P/A:P","score":3.6,"rating":"LOW"}],"cwes":["CWE-94","CWE-250","CWE-362","CWE-862"],"affected":[{"ranges":[{"version":"all Ansible 2.7.x versions prior to 2.7.17","status":"affected"},{"version":"all Ansible 2.8.x versions prior to 2.8.9","status":"affected"},{"version":"all Ansible 2.9.x versions prior to 2.9.6","status":"affected"}],"vendor":"Red Hat","product":"Ansible","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.7.0a1","status":"affected","fixed":"2.7.17"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.8.0a1","status":"affected","fixed":"2.8.11"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.9.0a1","status":"affected","fixed":"2.9.7"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.7.0","fixed":"2.7.17"},{"status":"affected","introduced":"2.8.0","fixed":"2.8.9"},{"status":"affected","introduced":"2.9.0","fixed":"2.9.6"}],"vendor":"redhat","product":"ansible","cpe":"cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","lastAffected":"3.3.5"},{"status":"affected","introduced":"3.5.0","lastAffected":"3.5.5"},{"status":"affected","introduced":"3.6.0","lastAffected":"3.6.3"}],"vendor":"redhat","product":"ansible_tower","cpe":"cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10"},{"status":"affected","version":"13"}],"vendor":"redhat","product":"openstack","cpe":"cpe:2.3:a:redhat:openstack:10:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"30"},{"status":"affected","version":"31"},{"status":"affected","version":"32"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.7.0","status":"affected","fixed":"2.7.17"},{"type":"ecosystem","introduced":"2.8.0","status":"affected","fixed":"2.8.9"},{"type":"ecosystem","introduced":"2.9.0","status":"affected","fixed":"2.9.6"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"pysec"}],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202006-11","tags":["advisory","third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.debian.org/security/2021/dsa-4950","tags":["third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10684","tags":["issue-tracking","report","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-10684","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/commit/0b4788a71fc7d24ffa957a94ee5e23d6a9733ab0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/commit/1d0d2645eed36ac4e17052ab4eacf240132d96fb","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/commit/5eabf7bb93c9bfc375b806a2b1f623d650cddc2b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/commit/a9d2ceafe429171c0e2ad007058b88bae57c74ce","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-p62g-jhg6-v3rq","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-207.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/","tags":["web"],"sources":["pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/","tags":["web"],"sources":["pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/","tags":["web"],"sources":["pysec"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-10684","url":"https://www.cve.org/CVERecord?id=CVE-2020-10684","licence":"CVE Terms of Use","modified":"2024-08-04T11:06:10.659Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p62g-jhg6-v3rq","url":"https://github.com/advisories/GHSA-p62g-jhg6-v3rq","licence":"CC-BY-4.0","modified":"2024-11-27T06:12:03.552Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-10684","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-10684","licence":"Public domain","modified":"2026-06-17T02:48:15.097Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-207","url":"https://osv.dev/vulnerability/PYSEC-2020-207","licence":"CC-BY-4.0","modified":"2023-11-08T04:01:59.204Z"}],"updatedAt":"2026-11-25T22:57:51.623Z","epss":{"score":0.00331,"percentile":0.28323,"date":"2026-12-01T12:00:22.000Z"}}