CVE-2021-4041

Ansible: Improper shell escaping in ansible-runner

Published Aug 24, 2022 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-0003 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.
Github GHSA Github GHSA GHSA-6j58-grhv-2769 ansible-runner vulnerable to shell command injection
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 3, 2024, 5:16 PM
Reserved
Dec 2, 2021, 12:00 AM
Status
Modified
Published
Aug 24, 2022, 4:15 PM
Modified
Jun 17, 2026, 4:18 AM
Severity
Moderate
Public date
Dec 1, 2021, 12:20 PM