{"id":"CVE-2021-4041","published":"2022-08-24T15:11:13Z","modified":"2024-08-03T17:16:03Z","title":"A flaw was found in ansible-runner","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00332,"percentile":0.2706,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2028074","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-4041","tags":["x_refsource_MISC"]},{"url":"https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd","tags":["x_refsource_MISC"]}],"priority":{"score":5.4,"factors":[{"name":"EPSS percentile","points":5.41}]},"affectedVersions":[{"vendor":"n/a","product":"ansible-runner","versions":["Fixed in ansible-runner 2.1.0"]}],"affected":[{"ecosystem":"PyPI","package":"ansible-runner","vulnerableRanges":["<2.1.0"],"patched":["2.1.0"],"from":["GHSA-6j58-grhv-2769","PYSEC-2022-253"],"provenance":"source"}],"summary":{"text":"A flaw in ansible-runner lies in its improper escaping of shell commands passed to ansible_runner.interface.run_command, which can cause parameters to be executed as the host's shell command.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:15Z"},"euvd":{"id":"EUVD-2022-0003","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-ansible-runner-cve-2021-3702","parents":[{"from":"CVE-2021-3702","to":"CVE-2021-4041","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ansible_runner/runner.py"],"commits":["https://github.com/ansible/ansible-runner/commit/93e95a3df9021a38010386d07df121392d249253","https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd"],"basis":"shared function","functions":["_delete"]}]}]}}