cve.bz

CVE-2020-1734 redhat: OS Command Injection

7.4 highEPSS 0.5%Fix available

High (7.4) in redhat. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in ansible 2.10.0rc1, 2.7.17, 2.8.13.

On this page
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.

Severity

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
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 40th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-1734 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-1734?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-1734?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-1734 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:ansible_enginethrough 2.7.16
redhat:ansible_engine2.8.8
redhat:ansible_engine2.9.5
redhat:ansible_towerthrough 3.3.4
redhat:ansible_tower3.4.5
redhat:ansible_tower3.5.5
redhat:ansible_tower3.6.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h39q-95q5-9jfpPyPIansible>=2.10.0a1 <2.10.0rc12.10.0rc1
GHSA-h39q-95q5-9jfpPyPIansible>=2.9.0a1 <2.9.112.9.11
GHSA-h39q-95q5-9jfpPyPIansible<2.8.132.8.13
PYSEC-2020-6PyPIansible<2.7.172.7.17

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14ansibleno fix listedDEBIAN-CVE-2020-1734
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 6 moreansibleno fix listedUBUNTU-CVE-2020-1734
SUSEHPE Helion OpenStack 8documentation-hpe-helion-openstack-user, documentation-hpe-helion-openstack-planning, documentation-hpe-helion-openstack-security and 3 more8.20201007-1.29.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8release-notes-hpe-helion-openstack8.20200922-3.23.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8venv-openstack-horizon-hpe12.0.5~dev3-14.32.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8venv-openstack-horizon-hpe12.0.5~dev6-14.48.1SUSE-SU-2022:3338-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-ansible8.0+git.1596735237.54109b1-3.77.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-ansible8.0+git.1660773729.3789a6d-3.85.1SUSE-SU-2022:3338-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-cinder8.0+git.1596129856.263f430-3.43.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-cobbler8.0+git.1660773402.d845a45-3.47.1SUSE-SU-2022:3338-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-glance8.0+git.1593631779.76fa9b7-3.24.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-mq8.0+git.1593618123.678c32b-3.26.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-nova8.0+git.1601298847.dd01585-3.42.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-osconfig8.0+git.1595885113.93abcbc-3.49.1SUSE-SU-2020:3309-1
73 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3ansible2.9.21-bp153.2.3.1openSUSE-SU-2022:0081-1
openSUSETumbleweedansible-1010.6.0-1.1openSUSE-SU-2024:14536-1
openSUSETumbleweedansible-1111.11.0-1.1openSUSE-SU-2025:15605-1
openSUSETumbleweedansible-1212.2.0-1.1openSUSE-SU-2025:15753-1
openSUSETumbleweedansible-1313.7.0-1.1openSUSE-SU-2026:10944-1
openSUSETumbleweedansible-1414.6.0-1.1openSUSE-SU-2026:12447-1
openSUSETumbleweedansible-99.8.0-1.1openSUSE-SU-2024:14244-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Ansible Engine 2.7.16, 2.8.10, and 2.9.6 as well as previous versions are affected.

Ansible Tower 3.4.5, 3.5.5 and 3.6.3 as well as previous versions are affected.

In Red Hat OpenStack Platform, because the flaw has a lower impact, ansible is not directly customer exposed, and the fix would require a substantial amount of development, no update will be provided at this time for the RHOSP ansible package.

Red Hat's mitigation

This issue can be avoided by escaping variables which are used in the lookup.

ProductPackageStateAdvisory
Red Hat Ansible Tower 3.4 for RHEL 7ansible-tower-34/ansible-tower-memcached:1.4.15-28Fixed 2020-02-18RHBA-2020:0547
Red Hat Ansible Tower 3.4 for RHEL 7ansible-tower-35/ansible-tower-memcached:1.4.15-28Fixed 2020-02-18RHBA-2020:0547
Red Hat Ansible Tower 3.4 for RHEL 7ansible-tower-37/ansible-tower-memcached-rhel7:1.4.15-28Fixed 2020-02-18RHBA-2020:0547
Red Hat Ansible Tower 3.5 for RHEL 7ansible-tower-35/ansible-tower:3.5.6-1Fixed 2020-04-22RHBA-2020:1539
CloudForms Management Engine 5ansible-towerNot affected
Red Hat Ansible Engine 2ansibleWill not fix
Red Hat Ansible Tower 3ansibleWill not fix
Red Hat Ceph Storage 2ansibleOut of support scope
Red Hat Ceph Storage 3ansibleWill not fix
Red Hat OpenStack Platform 10 (Newton)ansibleOut of support scope
Red Hat OpenStack Platform 13 (Queens)ansibleWill not fix
Red Hat Storage 3ansibleWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-1734.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON