Advisory

GHSA-gwr8-5j83-483c

Also known as: CVE-2019-14904, PYSEC-2020-161

Summary

OS Command Injection and Improper Input Validation in ansible

Details

A flaw was found in the solaris_zone module from the Ansible Community modules. When setting the name for the zone on the Solaris host, the zone name is checked by listing the process with the 'ps' bare command on the remote machine. An attacker could take advantage of this flaw by crafting the name of the zone and executing arbitrary commands in the remote host. Ansible Engine 2.7.15, 2.8.7, and 2.9.2 as well as previous versions are affected.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-04-20 16:44 UTC
Modified
2024-09-06 20:21 UTC

Affected packages and fixes

ansible

PyPI · All systems

Affected

  • introduced 0, fixed 2.7.16 (ecosystem)

Fixed versions

2.7.16

Fix

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

ansible

PyPI · All systems

Affected

  • introduced 2.8.0a1, fixed 2.8.8 (ecosystem)

Fixed versions

2.8.8

Fix

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

ansible

PyPI · All systems

Affected

  • introduced 2.9.0a1, fixed 2.9.3 (ecosystem)

Fixed versions

2.9.3

Fix

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

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