Skip to content
OpenAdvisories
High · 7.8 CVE-2021-4041 EUVD-2022-0003GHSA-6j58-grhv-2769PYSEC-2022-253

ansible-runner vulnerable to shell command injection

Published Aug 24, 2022 · Updated Aug 3, 2024 · Assigned by 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.

Affected products

VendorProductAffectedFixed
— 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.

ReleasePackageFixed inAdvisory
Debian 14 ansible-runner 2.1.1-1 —
Debian 13 ansible-runner 2.1.1-1 —
Debian 12 ansible-runner 2.1.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS ansible-runner 2.1.1-1 —
ReleasePackageFixed inAdvisory
Red Hat Ansible Automation Platform 2 ansible-runner +1 2.0.3-2.el8ap RHSA-2022:0108

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI ansible-runner < 2.1.0 2.1.0 GHSA-6j58-grhv-2769

Advisories 1

References