CVE-2021-4041
publishedAnsible: Improper shell escaping in ansible-runner
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | ansible-runnerFixed in ansible-runner 2.1.0 | Affected | Not stated | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | ansible-runner | Fixed in ansible-runner 2.1.0 (affected) | redhat · cna |
Weaknesses
1- CWE-20 CWE-20 -Improper Input Validation
References
3Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- f742205228b0774fc044db6ad96a456e527f083f467af9bbb3dada41efff653e
- Ingested
- 23 Sep 2026, 07:57:18 UTC
- Source record
- Official CVE record