Live threats

All CVEs / Redhat

CVE-2021-4041Redhat Ansible Runner

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
0.3%
probability of exploitation in 30 days · percentile 19
Auth required
Yes
Published
Aug 24, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20, CWE-116
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ansible Runner.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI ansible-runner < 2.1.0 2.1.0 pip install "ansible-runner>=2.1.0"
PyPI ansible-runner < 2.1.0 2.1.0 pip install "ansible-runner>=2.1.0"

Per OSV / GitHub Advisories (GHSA-6j58-grhv-2769, PYSEC-2022-253). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
redhatansible_runner< 2.1.0
redhatansible_runner2.1.0
redhatansible_runner2.1.0
redhatansible_runner2.1.0

Official sources

References

Links published by the sources. Open them with care.