Vulnerability Details : CVE-2021-4041
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.
Vulnerability category: Input validation
Products affected by CVE-2021-4041
- cpe:2.3:a:redhat:ansible_runner:*:*:*:*:*:*:*:*
- cpe:2.3:a:redhat:ansible_runner:2.1.0:alpha1:*:*:*:*:*:*
- cpe:2.3:a:redhat:ansible_runner:2.1.0:alpha2:*:*:*:*:*:*
- cpe:2.3:a:redhat:ansible_runner:2.1.0:beta1:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-4041
0.08%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 31 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-4041
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.8
|
HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
NIST |
CWE ids for CVE-2021-4041
-
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.Assigned by: secalert@redhat.com (Secondary)
-
The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-4041
-
https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd
Remove shell use in subprocess · ansible/ansible-runner@3533f26 · GitHubPatch;Third Party Advisory
-
https://access.redhat.com/security/cve/CVE-2021-4041
CVE-2021-4041- Red Hat Customer PortalVendor Advisory
-
https://bugzilla.redhat.com/show_bug.cgi?id=2028074
2028074 – (CVE-2021-4041) CVE-2021-4041 Ansible: Improper shell escaping in ansible-runnerIssue Tracking;Patch;Vendor Advisory
Jump to