Advisory

GHSA-6j58-grhv-2769

Also known as: CVE-2021-4041, PYSEC-2022-253

Summary

ansible-runner vulnerable to shell command injection

Details

A flaw was found in ansible-runner. An improper escaping of the shell command, while calling the ansible_runner.interface.run_command, can lead to parameters getting executed as host's shell command. A developer could unintentionally write code that gets executed in the host rather than the virtual environment.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-08-25 00:00 UTC
Modified
2024-09-03 21:37 UTC

Affected packages and fixes

ansible-runner

PyPI · All systems

Affected

  • introduced 0, fixed 2.1.0 (ecosystem)

Fixed versions

2.1.0

Fix

  • Fixed version 2.1.0
    pip install --upgrade ansible-runner==2.1.0

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