Advisory

GHSA-h39q-95q5-9jfp

Also known as: CVE-2020-1734, PYSEC-2020-6

Summary

OS Command Injection in ansible

Details

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

High Basis: The source's own band: HIGH

Dates

Published
2022-02-09 00:11 UTC
Modified
2024-09-10 22:30 UTC

Affected packages and fixes

ansible

PyPI · All systems

Affected

  • introduced 2.10.0a1, fixed 2.10.0rc1 (ecosystem)

Fixed versions

2.10.0rc1

Fix

  • Fixed version 2.10.0rc1
    pip install --upgrade ansible==2.10.0rc1

ansible

PyPI · All systems

Affected

  • introduced 2.9.0a1, fixed 2.9.11 (ecosystem)

Fixed versions

2.9.11

Fix

  • Fixed version 2.9.11
    pip install --upgrade ansible==2.9.11

ansible

PyPI · All systems

Affected

  • introduced 0, fixed 2.8.13 (ecosystem)

Fixed versions

2.8.13

Fix

  • Fixed version 2.8.13
    pip install --upgrade ansible==2.8.13

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences