Advisory

GHSA-fc4h-467w-46rh

Also known as: CVE-2018-10875, PYSEC-2018-43

Summary

Ansible Arbitrary Code Execution

Details

A flaw was found in ansible. ansible.cfg is read from the current working directory which can be altered to make it point to a plugin or a module path under the control of an attacker, thus allowing the attacker to execute arbitrary code.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-13 01:07 UTC
Modified
2024-09-05 00:55 UTC

Affected packages and fixes

ansible

PyPI · All systems

Affected

  • introduced 0, fixed 2.4.6.0 (ecosystem)

Fixed versions

2.4.6.0

Fix

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

ansible

PyPI · All systems

Affected

  • introduced 2.5.0a1, fixed 2.5.6 (ecosystem)

Fixed versions

2.5.6

Fix

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

ansible

PyPI · All systems

Affected

  • introduced 2.6.0a1, fixed 2.6.1 (ecosystem)

Fixed versions

2.6.1

Fix

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

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