Race Condition Affecting ansible-runner package, versions [0,2.0.1)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.05% (20th 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 Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-ANSIBLERUNNER-1566563
  • published17 Aug 2021
  • disclosed26 Jun 2021
  • creditToshio Kuratomi

Introduced: 26 Jun 2021

CVE-2021-3702  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade ansible-runner to version 2.0.1 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 Race Condition with temporary files in tempfile.TemporaryDirectory(). An attacker could watch for creation of a rapid creation and deletion of a temporary directory, substitute their own directory at that name, and then have access to ansible-runner's private_data_dir the next time ansible-runner made use of the zprivate_data_dir`.

CVSS Scores

version 3.1