cve.bz

CVE-2021-3702 redhat ansible runner: Race Condition

6.3 mediumEPSS 0.2%Fix available

Medium (6.3) in redhat ansible runner. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in ansible-runner 2.1.0.

On this page
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.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 10th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3702 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3702?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3702?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3702 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:ansible_runner2.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-772j-xvf9-qpf5PyPIansible-runner>=2.0.0 <2.1.02.1.0
PYSEC-2022-43068PyPIansible-runner>=2.0.0 <2.1.02.1.0

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
CloudForms Management Engine 5ansible-runnerNot affected
Red Hat Ansible Automation Platform 1.2ansible-runnerNot affected
Red Hat Ansible Automation Platform 2ansible-runnerNot affected
Red Hat Ansible Tower 3ansible-runnerNot affected
Red Hat Ansible Tower 3python2-ansible-runnerNot affected
Red Hat Ansible Tower 3python3-ansible-runnerNot affected
Red Hat Ceph Storage 4ansible-runnerNot affected
Red Hat OpenShift Container Platform 3.11ansible-runnerNot affected
Red Hat OpenShift Container Platform 4ansible-runnerNot affected
Red Hat OpenStack Platform 13 (Queens)python-ansible-runnerNot affected
Red Hat OpenStack Platform 16 (Train)python-ansible-runnerNot affected
Red Hat Satellite 6ansible-runnerNot affected
Red Hat Virtualization 4ansible-runnerNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3702.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON