CVE-2021-4041: Input Validation
A flaw was found in ansible-runner. An improper escaping of the shell command, while calling the ansiblerunner.interface.runcommand, 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.
Other sources
A flaw was found in ansible-runner. An improper escaping of the shell command, while calling the ansiblerunner.interface.runcommand, 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.
— MITRE
An improper escape on the line,could lead to unsuspecting developer execute code on the host machine rather than virtual one https://github.com/ansible/ansible-runner/blob/3d6886d1a26358ead139fef736d1c8ca07f7ab71/ansiblerunner/runner.py#L257
— Red Hat
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2021-4041?
CVE-2021-4041 is classified as a high severity vulnerability due to the potential for executing arbitrary commands in the host shell.
How do I fix CVE-2021-4041?
To remediate CVE-2021-4041, upgrade ansible-runner to version 2.1.0 or later.
What types of systems are affected by CVE-2021-4041?
CVE-2021-4041 affects systems running versions of ansible-runner prior to 2.1.0, including its alpha and beta releases.
What can attackers achieve by exploiting CVE-2021-4041?
Exploiting CVE-2021-4041 allows attackers to execute arbitrary commands on the host system, potentially compromising its integrity.
Who is responsible for reporting and addressing CVE-2021-4041?
The vulnerability CVE-2021-4041 was reported and acknowledged by Red Hat, who is responsible for providing the necessary patches.