Improper Shell Command Escaping in ansible-runner Leads to Command Execution in Host

Improper Shell Command Escaping in ansible-runner Leads to Command Execution in Host

CVE-2021-4041 · HIGH Severity

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

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.

Learn more about our Api Penetration Testing.