Vulnerability Description
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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Redhat | Ansible Runner | < 2.1.0 |
Related Weaknesses (CWE)
References
- https://access.redhat.com/security/cve/CVE-2021-4041Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2028074Issue TrackingPatchVendor Advisory
- https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b5PatchThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2021-4041Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2028074Issue TrackingPatchVendor Advisory
- https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b5PatchThird Party Advisory
FAQ
What is CVE-2021-4041?
CVE-2021-4041 is a vulnerability with a CVSS score of 7.8 (HIGH). 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. ...
How severe is CVE-2021-4041?
CVE-2021-4041 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-4041?
Check the references section above for vendor advisories and patch information. Affected products include: Redhat Ansible Runner.