{"id":"CVE-2020-1734","aliases":["CVE-2020-1734","GHSA-h39q-95q5-9jfp","PYSEC-2020-6"],"related":[],"kind":"vulnerability","state":"published","title":"OS Command Injection in ansible","summary":"A flaw was found in the pipe lookup plugin of ansible. Arbitrary commands can be run, when the pipe lookup plugin uses subprocess.Popen() with shell=True, by overwriting ansible facts and the variable is not escaped by quote plugin. An attacker could take advantage and run arbitrary commands by overwriting the ansible facts.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in the pipe lookup plugin of ansible. Arbitrary commands can be run, when the pipe lookup plugin uses subprocess.Popen() with shell=True, by overwriting ansible facts and the variable is not escaped by quote plugin. An attacker could take advantage and run arbitrary commands by overwriting the ansible facts.","source":"cvelist"},{"lang":"en","text":"A flaw was found in the pipe lookup plugin of ansible. Arbitrary commands can be run, when the pipe lookup plugin uses `subprocess.Popen()` with `shell=True`, by overwriting ansible facts and the variable is not escaped by quote plugin. An attacker could take advantage and run arbitrary commands by overwriting the ansible facts.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se encontró un fallo en el plugin pipe lookup de ansible. Los comandos arbitrarios se pueden ejecutar, cuando el plugin pipe lookup utiliza la función subprocess.Popen() con shell=True, al sobrescribir los datos de ansible y la variable no se escapa mediante el plugin citado. Un atacante podría tomar ventaja y ejecutar comandos arbitrarios al sobrescribir los datos de ansible.","source":"nvd"}],"published":"2020-03-03T21:23:15.000Z","modified":"2026-06-17T03:02:17.900Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:H/Au:N/C:P/I:P/A:P","score":3.7,"rating":"LOW"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"vendor":"Red Hat","product":"Ansible","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.10.0a1","status":"affected","fixed":"2.10.0rc1"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.9.0a1","status":"affected","fixed":"2.9.11"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.8.13"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"2.7.16"},{"status":"affected","version":"2.8.8"},{"status":"affected","version":"2.9.5"}],"vendor":"redhat","product":"ansible_engine","cpe":"cpe:2.3:a:redhat:ansible_engine:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","lastAffected":"3.3.4"},{"status":"affected","version":"3.4.5"},{"status":"affected","version":"3.5.5"},{"status":"affected","version":"3.6.3"}],"vendor":"redhat","product":"ansible_tower","cpe":"cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.7.17"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"pysec"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1734","tags":["issue-tracking","report","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ansible/ansible/issues/67792","tags":["report","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-1734","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/issues/70159","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/pull/70596","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/commit/4f978af4ca16ad9828ffe42203b9615425195f8b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/commit/963bdd9983b91a48fb6949fb2ef41071e72d0be0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/commit/bff0724e9eab2770f874e018298f9ab74cc2a78f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible/commit/e5649ca3e807f17e7c034ee22791f107162973b0","tags":["web"],"sources":["ghsa"]},{"url":"https://access.redhat.com/errata/RHBA-2020:0547","tags":["web"],"sources":["ghsa"]},{"url":"https://access.redhat.com/errata/RHBA-2020:1539","tags":["web"],"sources":["ghsa"]},{"url":"https://access.redhat.com/security/cve/CVE-2020-1734","tags":["web"],"sources":["ghsa"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1801804","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-h39q-95q5-9jfp","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-6.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-1734","url":"https://www.cve.org/CVERecord?id=CVE-2020-1734","licence":"CVE Terms of Use","modified":"2024-08-04T06:46:30.815Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h39q-95q5-9jfp","url":"https://github.com/advisories/GHSA-h39q-95q5-9jfp","licence":"CC-BY-4.0","modified":"2024-09-10T22:30:52.559Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-1734","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-1734","licence":"Public domain","modified":"2026-06-17T03:02:17.900Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-6","url":"https://osv.dev/vulnerability/PYSEC-2020-6","licence":"CC-BY-4.0","modified":"2023-11-08T04:02:40.844Z"}],"updatedAt":"2026-11-25T22:57:51.027Z","epss":{"score":0.00455,"percentile":0.41156,"date":"2026-12-02T12:00:21.000Z"}}