First published: Wed Dec 01 2021(Updated: )
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.
Credit: secalert@redhat.com secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/ansible-runner | <2.1.0 | 2.1.0 |
pip/ansible-runner | <2.1.0 | 2.1.0 |
Red Hat Ansible Runner | <2.1.0 | |
Red Hat Ansible Runner | =2.1.0-alpha1 | |
Red Hat Ansible Runner | =2.1.0-alpha2 | |
Red Hat Ansible Runner | =2.1.0-beta1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-4041 is classified as a high severity vulnerability due to the potential for executing arbitrary commands in the host shell.
To remediate CVE-2021-4041, upgrade ansible-runner to version 2.1.0 or later.
CVE-2021-4041 affects systems running versions of ansible-runner prior to 2.1.0, including its alpha and beta releases.
Exploiting CVE-2021-4041 allows attackers to execute arbitrary commands on the host system, potentially compromising its integrity.
The vulnerability CVE-2021-4041 was reported and acknowledged by Red Hat, who is responsible for providing the necessary patches.