CVE-2021-3702: ansible-runner vulnerable to Race Condition

CVE-2021-3702 · Severity: low · CVSS 3.1 · Published 2022-08-23

A race condition flaw was found in ansible-runner, where an attacker could watch for rapid creation and deletion of a temporary directory, substitute their directory at that name, and then have access to ansible-runner's private_data_dir the next time ansible-runner made use of the private_data_dir. The highest Threat out of this flaw is to integrity and confidentiality.

Technologies: ansible-runner (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2021-3702 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2021-3702 being exploited in the wild.
How severe is CVE-2021-3702?
Low severity, with a CVSS score of 3.1, published 23 August 2022.
Which products and versions are affected?
ansible-runner (PyPI) ECOSYSTEM:introduced=2.0.0,fixed=2.1.0.
Is there a fix for CVE-2021-3702?
Yes. ansible-runner (PyPI): upgrade to 2.1.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2021-3702?
Check whether you run ansible-runner (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • ansible-runner (PyPI): upgrade to 2.1.0 or later
    pip install "ansible-runner>=2.1.0"

Affected products

  • ansible-runner (PyPI) ECOSYSTEM:introduced=2.0.0,fixed=2.1.0

Identifiers

  • CVE-2021-3702
  • GHSA-772j-xvf9-qpf5
  • PYSEC-2022-43068

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.