{"cve":"CVE-2021-4041","nvd":{"published":"2022-08-24T16:15:09.370","modified":"2026-06-17T04:18:56.453","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-116","CWE-20"],"references":["https://access.redhat.com/security/cve/CVE-2021-4041","https://bugzilla.redhat.com/show_bug.cgi?id=2028074","https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd","https://access.redhat.com/security/cve/CVE-2021-4041","https://bugzilla.redhat.com/show_bug.cgi?id=2028074"],"products":["redhat:ansible_runner"],"source":"nvd","synced_at":"2026-10-19T21:34:18.502168378+00:00"},"epss":{"cve":"CVE-2021-4041","score":0.00332,"percentile":0.26407,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6j58-grhv-2769","url":"https://osv.dev/vulnerability/GHSA-6j58-grhv-2769","summary":"ansible-runner vulnerable to shell command injection","modified":"2024-09-03T21:37:16.179658Z","packages":[{"ecosystem":"PyPI","name":"ansible-runner","purl":"pkg:pypi/ansible-runner","ranges":["<2.1.0"],"fixed":["2.1.0"]}]},{"id":"PYSEC-2022-253","url":"https://osv.dev/vulnerability/PYSEC-2022-253","summary":"","modified":"2023-11-08T04:06:47.591366Z","packages":[{"ecosystem":"PyPI","name":"ansible-runner","purl":"pkg:pypi/ansible-runner","ranges":["<2.1.0"],"fixed":["2.1.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}