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

- Severity: Medium 6.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 11% of CVEs (2026-12-01)
- Published: 2022-08-23T15:51:01.000Z
- Modified: 2026-06-17T04:05:35.333Z
- Also known as: GHSA-772j-xvf9-qpf5, PYSEC-2022-43068
- Weaknesses: CWE-362, CWE-377
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- ansible-runner: Affects ansible-runner 2.0
- ansible-runner (PyPI): from 2.0.0 before 2.1.0
- redhat ansible_runner: 2.0.0

## Every score

- GitHub: 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`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: 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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/ansible/ansible-runner/pull/742/commits> (patch, third-party-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1977965> (advisory, issue-tracking, patch, vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2021-3702> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3702> (advisory)
- <https://github.com/ansible/ansible-runner/pull/742> (package)
- <https://github.com/ansible/ansible-runner/commit/93e95a3df9021a38010386d07df121392d249253> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/ansible-runner/PYSEC-2022-43068.yaml> (web)

## Sources

- CVE List: [CVE-2021-3702](https://www.cve.org/CVERecord?id=CVE-2021-3702), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-772j-xvf9-qpf5](https://github.com/advisories/GHSA-772j-xvf9-qpf5), CC-BY-4.0, modified 2024-11-26
- NVD: [CVE-2021-3702](https://nvd.nist.gov/vuln/detail/CVE-2021-3702), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-43068](https://osv.dev/vulnerability/PYSEC-2022-43068), CC-BY-4.0, modified 2024-11-25

---

Page: https://cve.day/CVE-2021-3702 · Whole record: https://cve.day/CVE-2021-3702.json · Rebuilt by cve.day 2026-11-25T22:58:07.771Z
