CVE-2020-1734
OS Command Injection in ansible
Also known as GHSA-h39q-95q5-9jfp, PYSEC-2020-6
Mitigation
- Upgrade ansible to one of 2.10.0rc1, 2.9.11, 2.8.13, 2.7.17 (or later in the same release line).
Who should check
- Projects that depend on PyPI package ansible (>= 2.10.0a1, < 2.10.0rc1)
- Anyone running Red Hat Ansible (versions: see the vendor advisory)
Vulnerability facts
- Affected
- ansible >= 2.10.0a1, < 2.10.0rc1
- Fixed in
- 2.10.0rc1, 2.9.11, 2.8.13, 2.7.17
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.4 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: Low
- EPSS
- 0.46% chance of exploitation in 30 days (percentile 31, 2026-11-26)
- CWE
- CWE-78
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2020-1734. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2020-1734.md Affected: ansible >= 2.10.0a1, < 2.10.0rc1 Fixed in: 2.10.0rc1, 2.9.11, 2.8.13, 2.7.17 Steps: 1. Search this machine and project for ansible (PyPI), Red Hat Ansible: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/ansible/ansible/pull/70596
- https://github.com/ansible/ansible/commit/4f978af4ca16ad9828ffe42203b9615425195f8b
- https://github.com/ansible/ansible/commit/963bdd9983b91a48fb6949fb2ef41071e72d0be0
- https://github.com/ansible/ansible/commit/bff0724e9eab2770f874e018298f9ab74cc2a78f
- https://github.com/ansible/ansible/commit/e5649ca3e807f17e7c034ee22791f107162973b0
Other
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1734
- https://github.com/ansible/ansible/issues/67792
- https://github.com/ansible/ansible/issues/70159
- https://access.redhat.com/errata/RHBA-2020:0547
- https://access.redhat.com/errata/RHBA-2020:1539
- https://access.redhat.com/security/cve/CVE-2020-1734
- https://bugzilla.redhat.com/show_bug.cgi?id=1801804
- https://github.com/ansible/ansible
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-6.yaml
FAQ
Is CVE-2020-1734 being exploited?
There is no confirmed exploitation: CVE-2020-1734 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.46% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2020-1734?
High: CVSS 7.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2020-1734?
ansible >= 2.10.0a1, < 2.10.0rc1.
Is there a fix for CVE-2020-1734?
Yes. Fixed in 2.10.0rc1, 2.9.11, 2.8.13, 2.7.17. Upgrade ansible to one of 2.10.0rc1, 2.9.11, 2.8.13, 2.7.17 (or later in the same release line).
How do I check if I'm affected by CVE-2020-1734?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.