CVE-2021-4041
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.33%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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 3.1
- 7.8 HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 0.33% probability · 26th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-20, CWE-116
- Affected
- redhat/ansible runner
- Source
- secalert@redhat.com
References
- https://access.redhat.com/security/cve/CVE-2021-4041Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2028074Issue Tracking, Patch, Vendor Advisory
- https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bdPatch, Third Party Advisory
- https://access.redhat.com/security/cve/CVE-2021-4041Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2028074Issue Tracking, Patch, Vendor Advisory
- https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bdPatch, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.