{"id":"GHSA-6j58-grhv-2769","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.","aliases":["CVE-2021-4041","PYSEC-2022-253"],"modified":"2024-09-03T21:37:16.179658Z","published":"2022-08-25T00:00:27Z","database_specific":{"github_reviewed_at":"2022-09-01T22:22:11Z","nvd_published_at":"2022-08-24T16:15:00Z","cwe_ids":["CWE-116","CWE-20"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4041"},{"type":"WEB","url":"https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-4041"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2028074"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-6j58-grhv-2769"},{"type":"PACKAGE","url":"https://github.com/ansible/ansible-runner"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/ansible-runner/PYSEC-2022-253.yaml"}],"affected":[{"package":{"name":"ansible-runner","ecosystem":"PyPI","purl":"pkg:pypi/ansible-runner"},"ranges":[{"type":"ECOSYSTEM","events":[{"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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-6j58-grhv-2769/GHSA-6j58-grhv-2769.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"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"}]}