# CVE-2020-10691: Path Traversal in Ansible

- Severity: Medium 5.2 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- 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.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2020-04-30T16:23:36.000Z
- Modified: 2026-06-17T02:48:15.960Z
- Also known as: GHSA-3c67-gc48-983w, PYSEC-2020-2
- Weaknesses: CWE-22
- Assigned by: redhat

## Description

An archive traversal flaw was found in all ansible-engine versions 2.9.x prior to 2.9.7, when running ansible-galaxy collection install. When extracting a collection .tar.gz file, the directory is created without sanitizing the filename. An attacker could take advantage to overwrite any file within the system.

(As written by CVE List.)

## Affected

- Red Hat Ansible: all ansible-engine versions 2.9.x prior to 2.9.7
- ansible (PyPI): from 2.9.0a1 before 2.9.7; from 2.9.0 before 2.9.7
- redhat ansible_engine: from 2.9.0 before 2.9.7
- redhat ansible_tower: 3.0

## Every score

- redhat: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- GitHub: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- NVD: CVSS:2.0 3.6 Low `AV:L/AC:L/Au:N/C:N/I:P/A:P`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10691> (issue-tracking, mitigation, report, vendor-advisory, web)
- <https://github.com/ansible/ansible/pull/68596> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-10691> (advisory)
- <https://github.com/ansible/ansible/commit/b2551bb6943eec078066aa3a923e0bb3ed85abe8> (web)
- <https://github.com/advisories/GHSA-3c67-gc48-983w> (advisory)
- <https://github.com/ansible/ansible> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-2.yaml> (web)

## Sources

- CVE List: [CVE-2020-10691](https://www.cve.org/CVERecord?id=CVE-2020-10691), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3c67-gc48-983w](https://github.com/advisories/GHSA-3c67-gc48-983w), CC-BY-4.0, modified 2024-09-04
- NVD: [CVE-2020-10691](https://nvd.nist.gov/vuln/detail/CVE-2020-10691), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-2](https://osv.dev/vulnerability/PYSEC-2020-2), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-10691 · Whole record: https://cve.day/CVE-2020-10691.json · Rebuilt by cve.day 2026-11-25T22:57:52.242Z
