
Cloud Vulnerability DB
A community-led vulnerabilities database
A flaw was found in ansible-runner where an improper escaping of the shell command while calling the ansiblerunner.interface.runcommand could lead to parameters getting executed as host's shell command. This vulnerability, identified as CVE-2021-4041, affects ansible-runner versions prior to 2.1.0, where a developer could unintentionally write code that gets executed in the host rather than the virtual environment (NVD, Red Hat).
The vulnerability stems from improper shell escaping in the ansible-runner component. The issue has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The vulnerability is categorized under CWE-116 (Improper Encoding or Escaping of Output) and CWE-20 (Improper Input Validation) (NVD).
The vulnerability could allow an attacker to execute commands on the host system rather than within the intended virtual environment. This poses a significant security risk as it could lead to unauthorized command execution and potential system compromise (Red Hat).
The vulnerability has been fixed in ansible-runner version 2.1.0. The fix involves removing shell use in subprocess calls and implementing proper parameter handling. Users are advised to upgrade to version 2.1.0 or later to address this security issue (Bugzilla, GitHub).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."