{"id":"CVE-2021-3702","aliases":["CVE-2021-3702","GHSA-772j-xvf9-qpf5","PYSEC-2022-43068"],"related":[],"kind":"vulnerability","state":"published","title":"ansible-runner vulnerable to Race Condition","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Se encontró un fallo de condición de carrera en ansible-runner, donde un atacante podría observar la creación y eliminación rápida de un directorio temporal, sustituir su directorio por ese nombre, y luego tener acceso al private_data_dir de ansible-runner la próxima vez que ansible-runner hiciera uso del private_data_dir. La mayor amenaza de este fallo es para la integridad y la confidencialidad.","source":"nvd"}],"published":"2022-08-23T15:51:01.000Z","modified":"2026-06-17T04:05:35.333Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-362","CWE-377"],"affected":[{"ranges":[{"version":"Affects ansible-runner 2.0","status":"affected"}],"product":"ansible-runner","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.1.0"}],"ecosystem":"PyPI","package":"ansible-runner","purl":"pkg:pypi/ansible-runner","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.0.0"}],"vendor":"redhat","product":"ansible_runner","cpe":"cpe:2.3:a:redhat:ansible_runner:2.0.0:-:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.1.0"}],"ecosystem":"PyPI","package":"ansible-runner","purl":"pkg:pypi/ansible-runner","source":"pysec"}],"references":[{"url":"https://github.com/ansible/ansible-runner/pull/742/commits","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1977965","tags":["advisory","issue-tracking","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-3702","tags":["advisory","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3702","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible-runner/pull/742","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/ansible/ansible-runner/commit/93e95a3df9021a38010386d07df121392d249253","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/ansible-runner/PYSEC-2022-43068.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3702","url":"https://www.cve.org/CVERecord?id=CVE-2021-3702","licence":"CVE Terms of Use","modified":"2024-08-03T17:01:07.921Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-772j-xvf9-qpf5","url":"https://github.com/advisories/GHSA-772j-xvf9-qpf5","licence":"CC-BY-4.0","modified":"2024-11-26T16:24:33.368Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3702","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3702","licence":"Public domain","modified":"2026-06-17T04:05:35.333Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-43068","url":"https://osv.dev/vulnerability/PYSEC-2022-43068","licence":"CC-BY-4.0","modified":"2024-11-25T22:42:24.318Z"}],"updatedAt":"2026-11-25T22:58:07.771Z","epss":{"score":0.00204,"percentile":0.11006,"date":"2026-12-01T12:00:22.000Z"}}