Bug 2028074 (CVE-2021-4041)
| Summary: | CVE-2021-4041 Ansible: Improper shell escaping in ansible-runner | ||
|---|---|---|---|
| Product: | [Other] Security Response | Reporter: | Vipul Nair <vinair> |
| Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | akarol, amctagga, aoconnor, bbuckingham, bcoca, bcourt, bniver, carnil, chousekn, cwelton, davidn, dmetzger, eglynn, ehelms, epacific, flucifre, gblomqui, gmccullo, gmeno, gtanzill, jcammara, jhardy, jjoyce, jneedle, jobarker, jsherril, lhh, lzap, mabashia, mbenjamin, mburns, mgarciac, mhackett, mhulan, michal.skrivanek, mperina, myarboro, nmoumoul, notting, orabin, osapryki, pcreech, rchan, relrod, rhos-maint, roliveri, rpetrell, sbonazzo, simaishi, smallamp, smcdonal, sostapov, spower, teagle, tkuratom, vereddy, yguenane, zsadeh |
| Target Milestone: | --- | Keywords: | Security |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | ansible-runner 2.1.0 | Doc Type: | --- |
| Doc Text: |
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.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-01-11 22:00:41 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2028406, 2180515, 2180516, 2180720, 2180721, 2180722, 2180723, 2182373, 2182750 | ||
| Bug Blocks: | 2015241 | ||
|
Description
Vipul Nair
2021-12-01 12:48:35 UTC
There is an upstream change in 2.1.0 which removes the shell use in subprocess: https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd This issue has been addressed in the following products: Red Hat Ansible Automation Platform 2.0 for RHEL 8 Via RHSA-2022:0108 https://access.redhat.com/errata/RHSA-2022:0108 This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2021-4041 Created python-ansible-runner tracking bugs for this issue: Affects: epel-7 [bug 2180515] Affects: openstack-rdo [bug 2180516] |