{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-4041","published":"2022-08-24T16:15:09.370000Z","last_modified":"2026-06-17T04:18:56.453000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-20","CWE-116"],"cpes":[{"criteria":"cpe:2.3:a:redhat:ansible_runner:*:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"ansible_runner","version_end_excluding":"2.1.0"},{"criteria":"cpe:2.3:a:redhat:ansible_runner:2.1.0:alpha1:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"ansible_runner","version":"2.1.0"},{"criteria":"cpe:2.3:a:redhat:ansible_runner:2.1.0:alpha2:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"ansible_runner","version":"2.1.0"},{"criteria":"cpe:2.3:a:redhat:ansible_runner:2.1.0:beta1:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"ansible_runner","version":"2.1.0"}],"cpes_truncated":false,"vendors":["redhat"],"products":["redhat/ansible_runner"],"epss":{"score":0.00332,"percentile":0.18873,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-6j58-grhv-2769","ecosystem":"PyPI","name":"ansible-runner","purl":"pkg:pypi/ansible-runner","ranges":[{"introduced":"0","fixed":"2.1.0"}],"versions":["1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.1.0","1.1.1","1.1.2","1.2.0","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.4.0","1.4.1","1.4.2","1.4.4","1.4.5","1.4.6","1.4.7","1.4.8","1.4.9","2.0.0","2.0.0.0a5","2.0.0.0b1","2.0.0.0rc1","2.0.0.0rc2","2.0.0.0rc3","2.0.0a1","2.0.0a2","2.0.0a3","2.0.0a4","2.0.1","2.0.2","2.0.3","2.0.4","2.1.0.0a1","2.1.0.0a2","2.1.0.0b1"],"versions_truncated":false},{"advisory":"PYSEC-2022-253","ecosystem":"PyPI","name":"ansible-runner","purl":"pkg:pypi/ansible-runner","ranges":[{"introduced":"0","fixed":"2.1.0"}],"versions":["1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.1.0","1.1.1","1.1.2","1.2.0","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.4.0","1.4.1","1.4.2","1.4.4","1.4.5","1.4.6","1.4.7","1.4.8","1.4.9","2.0.0","2.0.0.0a5","2.0.0.0b1","2.0.0.0rc1","2.0.0.0rc2","2.0.0.0rc3","2.0.0a1","2.0.0a2","2.0.0a3","2.0.0a4","2.0.1","2.0.2","2.0.3","2.0.4","2.1.0.0a1","2.1.0.0a2","2.1.0.0b1"],"versions_truncated":false}],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2021-4041/","html_en":"/en/cve/CVE-2021-4041/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-4041","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-4041"},"untrusted":{"vendor_name":"Redhat","product_name":"Ansible Runner","desc_en":"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.","affected":[],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2021-4041","tags":["Vendor Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2028074","tags":["Issue Tracking","Patch","Vendor Advisory"]},{"url":"https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd","tags":["Patch","Third Party Advisory"]}]}}