CVE-2021-3701
MEDIUM 6.6CVSS 3.1ansible-runner has default temporary files written to world R/W locations
A flaw was found in ansible-runner where the default temporary files configuration in ansible-2.0.0 are written to world R/W locations. This flaw allows an attacker to pre-create the directory, resulting in reading private information or forcing ansible-runner to write files as the legitimate user in a place they did not expect. The highest threat from this vulnerability is to confidentiality and integrity.
- Published
- 23 Aug 2022
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-276
- Also known as
- GHSA-wwch-cmqr-hhrmPYSEC-2022-43067
- Sources
- NVDJSONOSV GHSA-wwch-cmqr-hhrmJSONOSV PYSEC-2022-43067JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.6 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.6 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.6 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | ansible_runnercpe:2.3:a:redhat:ansible_runner:2.0.0:-:*:*:*:*:*:* |
= 2.0.0 | |
| OSV | PyPI | ansible-runner | >= 2.0.0, < 2.1.0 | 2.1.0 |
References
- https://access.redhat.com/security/cve/CVE-2021-3701 · Vendor Advisory, WEB, ADVISORY
- https://bugzilla.redhat.com/show_bug.cgi?id=1977959 · Issue Tracking, Patch, Vendor Advisory, WEB, ADVISORY
- https://github.com/ansible/ansible-runner/issues/738 · Issue Tracking, Third Party Advisory, WEB, REPORT
- https://github.com/ansible/ansible-runner/pull/742/commits · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3701 · ADVISORY
- https://github.com/ansible/ansible-runner/pull/742 · WEB
- https://github.com/ansible/ansible-runner · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible-runner/PYSEC-2022-43067.yaml · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 23 Aug 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 23 Aug 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 24 Aug 2022)