{"id":"CVE-2021-4041","details":"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.","aliases":["GHSA-6j58-grhv-2769","PYSEC-2022-253"],"modified":"2026-05-28T04:07:00.853197209Z","published":"2022-08-24T16:15:09.370Z","database_specific":{"unresolved_ranges":[{"source":"CPE_STRING","extracted_events":[{"last_affected":"2.1.0-alpha1"},{"last_affected":"2.1.0-alpha2"},{"last_affected":"2.1.0-beta1"}],"vendor_product":"redhat:ansible_runner","cpes":["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:*:*:*:*:*:*"]}]},"references":[{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2021-4041"},{"type":"FIX","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2028074"},{"type":"FIX","url":"https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ansible/ansible-runner","events":[{"introduced":"0"},{"fixed":"41d0acb93abc6b2b54017aef2f53e0eeefbad00c"},{"fixed":"3533f265f4349a3f2a0283158cd01b59a6bbc7bd"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"2.1.0"}],"cpe":"cpe:2.3:a:redhat:ansible_runner:*:*:*:*:*:*:*:*"}}],"versions":["2.1.0a1","2.0.0-alpha3","2.0.0-alpha2","2.0.0-alpha1","1.4.6","1.4.5","1.4.4","1.4.3","1.4.2","1.4.1","1.3.4","1.3.3","1.3.2","1.3.1","1.3.0","1.2.0","1.1.2","1.1.1","1.1.0","1.0.5","1.0.4","1.0.3","1.0.2","1.0.1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-4041.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}