Improper Input Validation Affecting ansible-runner package, versions [,2.1.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.08% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-ANSIBLERUNNER-2308086
  • published2 Dec 2021
  • disclosed1 Dec 2021
  • creditUnknown

Introduced: 1 Dec 2021

CVE-2021-4041  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade ansible-runner to version 2.1.0 or higher.

Overview

ansible-runner is a tool that helps when interfacing with Ansible directly or as part of another system whether that be through a container image interface, as a standalone tool, or as a Python module that can be imported.

Affected versions of this package are vulnerable to Improper Input Validation while calling ansible_runner.interface.run_command, due to improper escaping of shell command where the parameters get executed as host's shell command. A developer could unintentionally write code that gets executed in the host rather than the virtual environment.

CVSS Scores

version 3.1