# CVE-2020-1734: OS Command Injection in ansible

- Severity: High 7.4 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L`
- 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.46%, higher than 41% of CVEs (2026-12-02)
- Published: 2020-03-03T21:23:15.000Z
- Modified: 2026-06-17T03:02:17.900Z
- Also known as: GHSA-h39q-95q5-9jfp, PYSEC-2020-6
- Weaknesses: CWE-78
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- Red Hat Ansible: n/a
- ansible (PyPI): from 2.10.0a1 before 2.10.0rc1; from 2.9.0a1 before 2.9.11; before 2.8.13; before 2.7.17
- redhat ansible_engine: up to 2.7.16; 2.8.8; 2.9.5
- redhat ansible_tower: up to 3.3.4; 3.4.5; 3.5.5; 3.6.3

## Every score

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

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1734> (issue-tracking, report, third-party-advisory, web)
- <https://github.com/ansible/ansible/issues/67792> (report, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-1734> (advisory)
- <https://github.com/ansible/ansible/issues/70159> (web)
- <https://github.com/ansible/ansible/pull/70596> (web)
- <https://github.com/ansible/ansible/commit/4f978af4ca16ad9828ffe42203b9615425195f8b> (web)
- <https://github.com/ansible/ansible/commit/963bdd9983b91a48fb6949fb2ef41071e72d0be0> (web)
- <https://github.com/ansible/ansible/commit/bff0724e9eab2770f874e018298f9ab74cc2a78f> (web)
- <https://github.com/ansible/ansible/commit/e5649ca3e807f17e7c034ee22791f107162973b0> (web)
- <https://access.redhat.com/errata/RHBA-2020:0547> (web)
- <https://access.redhat.com/errata/RHBA-2020:1539> (web)
- <https://access.redhat.com/security/cve/CVE-2020-1734> (web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1801804> (web)
- <https://github.com/advisories/GHSA-h39q-95q5-9jfp> (advisory)
- <https://github.com/ansible/ansible> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-6.yaml> (web)

## Sources

- CVE List: [CVE-2020-1734](https://www.cve.org/CVERecord?id=CVE-2020-1734), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-h39q-95q5-9jfp](https://github.com/advisories/GHSA-h39q-95q5-9jfp), CC-BY-4.0, modified 2024-09-10
- NVD: [CVE-2020-1734](https://nvd.nist.gov/vuln/detail/CVE-2020-1734), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-6](https://osv.dev/vulnerability/PYSEC-2020-6), CC-BY-4.0, modified 2023-11-08

---

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