CVE-2020-1734: OS Command Injection

Published Feb 11, 2020
·
Updated

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.

Other sources

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.

MITRE

The pipe lookup plugin uses subprocess.Popen() with shell=True. This can be used to run arbitrary commands by overwriting ansible facts and the variable is not escaped by quote plugin.

Red Hat

Affected Software

10 affected componentsFixes available
pip/ansible<2.8.13
2.8.13
pip/ansible>=2.9.0a1<2.9.11
2.9.11
pip/ansible>=2.10.0a1<2.10.0rc1
2.10.0rc1
redhat Ansible Engine<=2.7.16
redhat Ansible Engine=2.8.8
redhat Ansible Engine=2.9.5
redhat Ansible Tower<=3.3.4
redhat Ansible Tower=3.4.5
redhat Ansible Tower=3.5.5
redhat Ansible Tower=3.6.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/ansible to a version that resolves this vulnerability.

    Fixed in 2.8.13
  2. Upgrade

    Upgrade pip/ansible to a version that resolves this vulnerability.

    Fixed in 2.9.11
  3. Upgrade

    Upgrade pip/ansible to a version that resolves this vulnerability.

    Fixed in 2.10.0rc1

Event History

Feb 11, 2020
Data Sourced
via Red Hat·04:29 PM
DescriptionSeverityAffected Software
Mar 3, 2020
CVE Published
via MITRE·09:23 PM
Data Sourced
via MITRE·09:23 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
DescriptionSeverityWeaknessAffected Software
Feb 9, 2022
Advisory Published
via GitHub·12:11 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2020-1734?

CVE-2020-1734 is a vulnerability in the pipe lookup plugin of Ansible that allows arbitrary commands to be run.

2

How does CVE-2020-1734 work?

CVE-2020-1734 works by overwriting Ansible facts and running arbitrary commands when the pipe lookup plugin uses subprocess.Popen() with shell=True and the variable is not escaped by the quote plugin.

3

What is the severity of CVE-2020-1734?

The severity of CVE-2020-1734 is high with a CVSS score of 7.4.

4

Which versions of Ansible are affected by CVE-2020-1734?

Versions up to and including Ansible 2.10 are affected by CVE-2020-1734.

5

How can I fix CVE-2020-1734?

To fix CVE-2020-1734, upgrade to a version of Ansible that is not affected by the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203