7.8
CWE
116 20
Advisory Published
CVE Published
Advisory Published
Updated

CVE-2021-4041: Input Validation

First published: Wed Dec 01 2021(Updated: )

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.

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
redhat/ansible-runner<2.1.0
2.1.0
pip/ansible-runner<2.1.0
2.1.0
Red Hat Ansible Runner<2.1.0
Red Hat Ansible Runner=2.1.0-alpha1
Red Hat Ansible Runner=2.1.0-alpha2
Red Hat Ansible Runner=2.1.0-beta1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-4041?

    CVE-2021-4041 is classified as a high severity vulnerability due to the potential for executing arbitrary commands in the host shell.

  • How do I fix CVE-2021-4041?

    To remediate CVE-2021-4041, upgrade ansible-runner to version 2.1.0 or later.

  • What types of systems are affected by CVE-2021-4041?

    CVE-2021-4041 affects systems running versions of ansible-runner prior to 2.1.0, including its alpha and beta releases.

  • What can attackers achieve by exploiting CVE-2021-4041?

    Exploiting CVE-2021-4041 allows attackers to execute arbitrary commands on the host system, potentially compromising its integrity.

  • Who is responsible for reporting and addressing CVE-2021-4041?

    The vulnerability CVE-2021-4041 was reported and acknowledged by Red Hat, who is responsible for providing the necessary patches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203