Path Traversal in Ansible
A flaw was found in Ansible 2.7.17 and prior, 2.8.9 and prior, and 2.9.6 and prior when using the Extract-Zip function from the win_unzip module as the extracted file(s) are not checked if they belong to the destination folder. An attacker could take advantage of this flaw by crafting an archive anywhere in the file system, using a path traversal. This issue is fixed in 2.10.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | ansible | >= 2.8.0a1, < 2.8.9, >= 2.9.0a1, < 2.9.6, < 2.7.17 | 2.8.9, 2.9.6, 2.7.17 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1737
- https://github.com/ansible/ansible/issues/67795
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QT27K5ZRGDPCH7GT3DRI3LO4IVDVQUB7/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FWDK3QUVBULS3Q3PQTGEKUQYPSNOU5M3/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U3IMV3XEIUXL6S4KPLYYM4TVJQ2VNEP2/
- https://security.gentoo.org/glsa/202006-11
- https://github.com/advisories/GHSA-893h-35v4-mxqx
- https://nvd.nist.gov/vuln/detail/CVE-2020-1737
- https://github.com/ansible/ansible/pull/67799
- https://github.com/samdoran/ansible/commit/1de638b4d38d6d916588e2ad48d01f90dab8c36d
- https://github.com/samdoran/ansible/commit/aaf549d7870b8687209a3282841b59207735b676
- https://github.com/samdoran/ansible/commit/b60aa26e2313a8d52c0e0d3fd01696e797605b72
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-9.yaml
- https://github.com/samdoran/ansible
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FWDK3QUVBULS3Q3PQTGEKUQYPSNOU5M3
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QT27K5ZRGDPCH7GT3DRI3LO4IVDVQUB7
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U3IMV3XEIUXL6S4KPLYYM4TVJQ2VNEP2
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-22- Platform
- Python (PyPI)
- Package
ansible- Disclosed
- 09.03.2020
- Updated
- 11.10.2026 11:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2020-9 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-893h-35v4-mxqx - CC BY 4.0
Vulnerability history: ansible
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 68
- First → latest
- 09.2013 12.2025
- Without a fix
- 2
- Exploited in attacks
- 0
Severity breakdown
- Critical 9
- High 24
- Medium 27
- Low 6
- Unrated 2
Disclosures per year
- 2017: 3
- 2018: 12
- 2019: 8
- 2020: 29
- 2021: 7
- 2022: 3
- 2023: 1
- 2024: 0
- 2025: 1
- 2026: 0
earlier: 4
-
Path Traversal in Ansible this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.