
CVE catalog
CVE-2021-4041
ansible-runner: CVE-2021-4041
- Severity
- High · CVSS 7.3
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.33% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ansible-runner | sid | 2.4.3-2 | fixed |
| Debian | ansible-runner | forky | 2.4.3-2 | fixed |
| Debian | ansible-runner | trixie | 2.4.1-1 | fixed |
| Debian | ansible-runner | bookworm | 2.3.1-2 | fixed |
| Ubuntu | ansible-runner | 22.04 | 1.4.6-1 | vulnerable |
| Ubuntu | ansible-runner | 22.04 | 1.4.6-1.1 | vulnerable |
| Ubuntu | ansible-runner | 22.04 | 2.1.1-1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ansible-runner | source | sid | 2.1.1-1 | not yet assigned | Not reported | Not reported |
| Debian | ansible-runner | source | forky | 2.1.1-1 | not yet assigned | Not reported | Not reported |
| Debian | ansible-runner | source | trixie | 2.1.1-1 | not yet assigned | Not reported | Not reported |
| Debian | ansible-runner | source | bookworm | 2.1.1-1 | not yet assigned | Not reported | Not reported |
| Ubuntu | ansible-runner | deb | 22.04 | 2.1.1-1 | Not reported | UBUNTU-CVE-2021-4041 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-ansible-runner]Fixed
Source package: [ansible-runner]
Details (2)
2.3.1-2· all · bookwormFixed · Fixed:
2.1.1-1dsa · ansible-runner · debian · bookworm; dsa · ansible-runner · debian · 12
2.3.1-2· all · bookwormFixed · Fixed:
2.1.1-1dsa · ansible-runner · debian · bookworm; dsa · ansible-runner · debian · 12
- [python-ansible-runner-doc]Fixed
Source package: [ansible-runner]
Details (2)
2.3.1-2· all · bookwormFixed · Fixed:
2.1.1-1dsa · ansible-runner · debian · bookworm; dsa · ansible-runner · debian · 12
2.3.1-2· all · bookwormFixed · Fixed:
2.1.1-1dsa · ansible-runner · debian · bookworm; dsa · ansible-runner · debian · 12
[Debian 13 (Trixie)]
- [python3-ansible-runner]Fixed
Source package: [ansible-runner]
Details (2)
2.4.1-1· all · trixieFixed · Fixed:
2.1.1-1dsa · ansible-runner · debian · 13
2.4.1-1· all · trixieFixed · Fixed:
2.1.1-1dsa · ansible-runner · debian · 13
- [python-ansible-runner-doc]Fixed
Source package: [ansible-runner]
Details (2)
2.4.1-1· all · trixieFixed · Fixed:
2.1.1-1dsa · ansible-runner · debian · 13
2.4.1-1· all · trixieFixed · Fixed:
2.1.1-1dsa · ansible-runner · debian · 13
Observed:
References
- [https://access.redhat.com/errata/RHSA-2022:0108]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-4041]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-4041]
- [https://security-tracker.debian.org/tracker/CVE-2021-4041]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]