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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | ansible-runner | Fixed in ansible-runner 2.1.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ansible-runner | 2.1.1-1 | — |
| Debian 13 | ansible-runner | 2.1.1-1 | — |
| Debian 12 | ansible-runner | 2.1.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | ansible-runner | 2.1.1-1 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2 | ansible-runner +1 | 2.0.3-2.el8ap | RHSA-2022:0108 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | ansible-runner | < 2.1.0 | 2.1.0 | GHSA-6j58-grhv-2769 |
Advisories 1
- RHSA-2022:0108 Red Hat Security Advisory: ansible-runner security and bug fix update Red Hat Security Advisories (RHSA) · Nov 22, 2025