CVE-2021-4041Redhat Ansible Runner
High 7.8
Follow: this CVE · Redhat · Redhat Ansible Runner We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Ansible Runner.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| redhat | ansible_runner | < 2.1.0 |
| redhat | ansible_runner | 2.1.0 |
| redhat | ansible_runner | 2.1.0 |
| redhat | ansible_runner | 2.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- access.redhat.com Vendor Advisory
- bugzilla.redhat.com Issue Tracking Patch Vendor Advisory
- github.com Patch Third Party Advisory