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

EcosystemPackageFixed inAdvisory
Debian:12ansible-runner2.1.1-1DEBIAN-CVE-2021-4041
Debian:13ansible-runner2.1.1-1DEBIAN-CVE-2021-4041
Debian:14ansible-runner2.1.1-1DEBIAN-CVE-2021-4041
PyPIansible-runner2.1.0GHSA-6j58-grhv-2769
PyPIansible-runner2.1.0PYSEC-2022-253
Ubuntu:22.04:LTSansible-runner2.1.1-1UBUNTU-CVE-2021-4041

Affected products (as reported)

VendorProductVersions
n/a ansible-runner Fixed in ansible-runner 2.1.0

Weakness: CWE-20

References