Vulnerability · Published Aug 24, 2022 · Assigned by redhat
CVE-2021-4041
High 7.8
In plain English
A high-severity improper input validation in ansible-runner. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.8High
Exploit odds (30 days)0.3%top 73.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ansible-runner | 2.1.1-1 | DEBIAN-CVE-2021-4041 |
| Debian:13 | ansible-runner | 2.1.1-1 | DEBIAN-CVE-2021-4041 |
| Debian:14 | ansible-runner | 2.1.1-1 | DEBIAN-CVE-2021-4041 |
| PyPI | ansible-runner | 2.1.0 | GHSA-6j58-grhv-2769 |
| PyPI | ansible-runner | 2.1.0 | PYSEC-2022-253 |
| Ubuntu:22.04:LTS | ansible-runner | 2.1.1-1 | UBUNTU-CVE-2021-4041 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | ansible-runner | Fixed in ansible-runner 2.1.0 |
Weakness: CWE-20
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2028074 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2021-4041 x_refsource_MISC
- https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd x_refsource_MISC