{"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-04-10T04:37:53.962091Z","published":"2022-08-24T16:15:09.370Z","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":{"versions":[{"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.1","1.4.2","1.4.3","1.4.4","1.4.5","1.4.6","2.0.0-alpha1","2.0.0-alpha2","2.0.0-alpha3","2.1.0a1"],"database_specific":{"unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"2.1.0-alpha1"}]},{"events":[{"introduced":"0"},{"last_affected":"2.1.0-alpha2"}]},{"events":[{"introduced":"0"},{"last_affected":"2.1.0-beta1"}]}],"source":"https://storage.googleapis.com/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"}]}