{"id":"CVE-2021-4041","state":"PUBLISHED","title":"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 ho","description":"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.","publishedAt":"2022-08-24T15:11:13.000Z","updatedAt":"2024-08-03T17:16:03.408Z","severity":null,"assigner":"redhat","products":["n/a ansible-runner"],"affected":[{"vendor":"n/a","product":"ansible-runner","versions":[{"version":"Fixed in ansible-runner 2.1.0","status":"affected"}]}],"references":["https://bugzilla.redhat.com/show_bug.cgi?id=2028074","https://access.redhat.com/security/cve/CVE-2021-4041","https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd"],"weaknesses":["CWE-20"],"ingestedAt":"2026-10-29T19:49:23.890Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/4xxx/CVE-2021-4041.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-4041","state":"PUBLISHED","datePublished":"2022-08-24T15:11:13.000Z","dateUpdated":"2024-08-03T17:16:03.408Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2021-12-02T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"ansible-runner","versions":[{"version":"Fixed in ansible-runner 2.1.0","status":"affected"}]}],"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"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","description":"CWE-20 -Improper Input Validation","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"redhat","dateUpdated":"2022-08-24T15:11:13.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"secalert@redhat.com","ID":"CVE-2021-4041","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"ansible-runner","version":{"version_data":[{"version_value":"Fixed in ansible-runner 2.1.0"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-20 -Improper Input Validation"}]}]},"references":{"reference_data":[{"name":"https://bugzilla.redhat.com/show_bug.cgi?id=2028074","refsource":"MISC","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2028074"},{"name":"https://access.redhat.com/security/cve/CVE-2021-4041","refsource":"MISC","url":"https://access.redhat.com/security/cve/CVE-2021-4041"},{"name":"https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd","refsource":"MISC","url":"https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2028074","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-4041","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T17:16:03.408Z"}}]}}}