CVE-2021-4041
ansible-runner vulnerable to shell command injection
7.8
HIGH
CVSS 3.1
EPSS 0.07%
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.
How to fix CVE-2021-4041
To remediate CVE-2021-4041, upgrade the affected package to a fixed version below.
- —upgrade to 2.1.1-1 or later
- —upgrade to 2.1.0 or later
- —upgrade to 3533f265f4349a3f2a0283158cd01b59a6bbc7bd or later
Is CVE-2021-4041 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- from 0, < 2.1.1-1
- from 0, < 2.1.0
- from 0, < 3533f265f4349a3f2a0283158cd01b59a6bbc7bd | from 0, < 2.1.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |