Vulnerabilities · 2021 · Redhat
CVE-2021-4041
Redhat Ansible Runner vulnerability
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.
Affected products
Ansible Runner. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Redhat Ansible Runner runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- access.redhat.com/security/cve/CVE-2021-4041 · Vendor Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2028074 · Patch
- github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd · Patch
- nvd.nist.gov/vuln/detail/CVE-2021-4041
- github.com/pypa/advisory-database/tree/main/vulns/ansible-runner/PYSEC-2022-253.yaml
- github.com/advisories/GHSA-6j58-grhv-2769
- nvd.nist.gov/vuln/detail/CVE-2021-4041
- cve.org/CVERecord?id=CVE-2021-4041
More vulnerabilities in Redhat products
CVE-2025-53862CVE-2025-53861CVE-2025-47711CVE-2025-46400CVE-2025-46399CVE-2025-46398CVE-2025-46397CVE-2025-35036All 5,277
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.