Race condition in ansible-runner
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | ansible-runner | Affects ansible-runner 2.0 | — | No fix listed | CNA |
| — | ansible-runner (PyPI) | 2.0.0 to before 2.1.0 | 2.1.0 | Patch available | GHSA-772j-xvf9-qpf5 |
- ansible-runner Vendor— Affected Affects ansible-runner 2.0 Fixed in — No fix listed CNA
- ansible-runner (PyPI) Vendor— Affected 2.0.0 to before 2.1.0 Fixed in 2.1.0 Patch available GHSA-772j-xvf9-qpf5
Remediation
- Fix · GHSA-772j-xvf9-qpf5 ansible-runner (PyPI) Fixed in 2.1.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 11 products
- CloudForms Management Engine 5
- Red Hat Ansible Automation Platform 1.2
- Red Hat Ansible Automation Platform 2
- Red Hat Ansible Tower 3
- Red Hat Ceph Storage 4
- Red Hat OpenShift Container Platform 3.11
- Red Hat OpenShift Container Platform 4
- Red Hat OpenStack Platform 13 (Queens)
- Red Hat OpenStack Platform 16 (Train)
- Red Hat Satellite 6
- Red Hat Virtualization 4
Timeline
- 2026-10-02 Threatist record created from CVE-2021-3702
- 2026-10-03 Alias added: GHSA-772j-xvf9-qpf5
References
Patch 2
Advisory 2
More Red Hat Ansible Runner vulnerabilities
- TI-2021-02929 Improper input validation in ansible-runner CVSS 3.1HIGH 7.8
- TI-2021-02635 Incorrect default permissions in ansible-runner CVSS 3.1MEDIUM 6.6
Sources
- CVE-2021-3702 · CVE Program
- CVE-2021-3702 · NVD
- FIRST EPSS
- GHSA-772j-xvf9-qpf5 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-3702 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences