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
- pypi ansible-runner 2.1.0
- github.com/ansible/ansible-runner@93e95a3 commit
- github.com/ansible/ansible-runner#742 pull request
- github.com/ansible/ansible-runner#742 pull request
- bugzilla.redhat.com/show_bug.cgi?id=1977965 advisory
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 FencerVendor 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-runnernot affected: vulnerable code not present
+5 more productsfewer
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
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
References
-
github.com
/ansible/ansible-runner/pull/742/commits
web, patch, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1977965
web, issue-tracking, patch, vendor-advisory, advisory
-
github.com
/ansible/ansible-runner/pull/742
package
-
github.com
/ansible/ansible-runner/commit/93e95a3df9021a38010386d07df121392d249253
web
-
access.redhat.com
/security/cve/CVE-2021-3702
web, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-3702
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/ansible-runner/PYSEC-2022-43068.yaml
web
Sources
- CVE List CVE-2021-3702
- GitHub Advisory GHSA-772j-xvf9-qpf5
- NVD CVE-2021-3702
- OSV PYSEC-2022-43068
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.