Skip to content
Fencer Intel
medium 6.3

CVE-2021-3702 json

ansible-runner vulnerable to Race Condition

published 4y ago modified 4mo ago also GHSA-772j-xvf9-qpf5 , PYSEC-2022-43068 , EUVD-2022-0005

cvss
6.3
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 10%
public exploits
0
none known

Summary

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.

Patch / fix

Is CVE-2021-3702 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-3702 updated cvss 6.0

ansible-runner: Race condition with temporary files in tempfile.TemporaryDirectory()

  • Red Hat CloudForms Management Engine 5 ansible-runner, python2-ansible-runner, python3-ansible-runner Red Hat Ansible Automation Platform 1.2 ansible-runner Red Hat Ansible Automation Platform 2 ansible-runner Red Hat Ansible Tower 3 ansible-runner, python2-ansible-runner, python3-ansible-runner Red Hat Ceph Storage 4 ansible-runner, python3-ansible-runner Red Hat OpenShift Container Platform 3.11 ansible-runner
    +5 more products
    Red Hat OpenShift Container Platform 4 ansible-runner, python2-ansible-runner, python3-ansible-runner Red Hat OpenStack Platform 13 (Queens) python2-ansible-runner Red Hat OpenStack Platform 16 (Train) python-ansible-runner, python3-ansible-runner Red Hat Satellite 6 ansible-runner, python2-ansible-runner Red Hat Virtualization 4 ansible-runner
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.20% chance of exploitation in the next 30 days, higher than 10% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.1 6.3 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
OSV 3.1 6.3 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHub 3.1 6.3 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected packages

ecosystem package affected fixed in
pypi ansible-runner
>=2.0.0, <2.1.0
2.1.0

Affected products

  • n/a ansible-runner

Classification

Weakness
  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
  • CWE-377 DEPRECATED: Insecure Temporary File

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.