{"id":"CVE-2021-4041","aliases":["GHSA-6j58-grhv-2769","PYSEC-2022-253"],"url":"https://o3.security/vulnerability/CVE-2021-4041","summary":"ansible-runner vulnerable to shell command injection","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.","published":"2022-08-24T16:15:09.370Z","modified":"2026-07-08T06:03:34.458471846Z","cvss":{"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"},"epss":{"score":0.00328,"percentile":0.25807,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"ansible-runner","fixedVersion":"2.1.0"}],"fix":{"url":"https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd","label":"ansible/ansible-runner@3533f26"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T06:03:34.458471846Z"}}