{"id":"CVE-2021-3702","published":"2022-08-23T15:51:01Z","modified":"2024-08-03T17:01:07Z","title":"A race condition flaw was found in ansible-runner, where an attacker could watch for rapid creation and deletion of a…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00204,"percentile":0.10613,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://github.com/ansible/ansible-runner/pull/742/commits","tags":["x_refsource_MISC"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1977965","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-3702","tags":["x_refsource_MISC"]}],"priority":{"score":2.1,"factors":[{"name":"EPSS percentile","points":2.12}]},"affectedVersions":[{"vendor":"n/a","product":"ansible-runner","versions":["Affects ansible-runner 2.0"]}],"affected":[{"ecosystem":"PyPI","package":"ansible-runner","vulnerableRanges":[">=2.0.0, <2.1.0"],"patched":["2.1.0"],"from":["GHSA-772j-xvf9-qpf5","PYSEC-2022-43068"],"provenance":"source"}],"summary":{"text":"A race condition in ansible-runner's handling of its temporary directory lets an attacker who can watch the filesystem swap in their own directory under the same name. Exploiting it requires the attacker to repeatedly create and delete that temporary directory in time with ansible-runner, after which the attacker's directory is used as the private_data_dir on a later run, exposing confidentiality and integrity of that data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:23:54Z"},"euvd":{"id":"EUVD-2022-0005","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-ansible-runner-cve-2021-3702","children":[{"from":"CVE-2021-3702","to":"CVE-2021-4041","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ansible_runner/runner.py"],"commits":["https://github.com/ansible/ansible-runner/commit/93e95a3df9021a38010386d07df121392d249253","https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd"],"basis":"shared function","functions":["_delete"]}]}]}}