CVE-2020-1737 json
Path Traversal in Ansible
published 6y ago modified 4mo ago also GHSA-893h-35v4-mxqx , PYSEC-2020-9 , EUVD-2020-0031
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 30%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi ansible 2.7.17, 2.8.9, 2.9.6
- redhat ansible_engine 2.7.17, 2.8.9, 2.9.6
- ansible Debian 14, Debian 13, Debian 12 2.9.7+dfsg-1
debian advisories DEBIAN-CVE-2020-1737
- ansible ansible engine 2.9, ansible engine 2 2.9.7-1.el7ae
- ansible ansible engine 2.9, ansible engine 2 2.9.7-1.el8ae
- ansible-test ansible engine 2.9, ansible engine 2 2.9.7-1.el7ae
- ansible-test ansible engine 2.9, ansible engine 2 2.9.7-1.el8ae
- ansible ansible engine 2.7 2.7.17-1.el7ae
- ansible ansible engine 2.8 2.8.11-1.el7ae
- ansible ansible engine 2.8 2.8.11-1.el8ae
red hat advisories RHSA-2020:1542RHSA-2020:1541RHSA-2020:1544RHSA-2020:1543
- storm OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 1.2.3-3.6.1
- ansible OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 2.9.14-3.15.1
- grafana OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 6.7.4-4.12.1
- ardana-mq OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1593618123.678c32b-3.26.1
- ardana-nova OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1601298847.dd01585-3.42.1
- crowbar-core OpenStack Cloud Crowbar 8 5.0+git.1600432272.b3ad722f0-3.44.1
- python-kombu OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 4.1.0-3.7.1
- ardana-cinder OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1596129856.263f430-3.43.1
suse advisories SUSE-SU-2020:3309-1
- ansible-14 openSUSE Tumbleweed 14.6.0-1.1
- ansible-13 openSUSE Tumbleweed 13.7.0-1.1
- ansible-12 openSUSE Tumbleweed 12.2.0-1.1
- ansible-11 openSUSE Tumbleweed 11.11.0-1.1
- ansible-10 openSUSE Tumbleweed 10.6.0-1.1
- ansible-9 openSUSE Tumbleweed 9.8.0-1.1
- ansible Package Hub 15 SP3, openSUSE Leap 15.3 2.9.21-bp153.2.3.1
opensuse advisories openSUSE-SU-2026:12447-1openSUSE-SU-2026:10944-1openSUSE-SU-2025:15753-1openSUSE-SU-2025:15605-1openSUSE-SU-2024:14536-1openSUSE-SU-2024:14244-1
- ansible Alpine 3.10 2.8.9-r0
- ansible Alpine 3.12, Alpine 3.11 2.9.6-r0
- ansible Alpine 3.9 2.7.17-r0
- ansible-base Alpine 3.15, Alpine 3.14, Alpine 3.13 2.9.6-r0
alpine advisories ALPINE-CVE-2020-1737
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/samdoran/ansible@1de638b commit
- github.com/samdoran/ansible@aaf549d commit
- github.com/samdoran/ansible@b60aa26 commit
- github.com/ansible/ansible#67799 pull request
Is CVE-2020-1737 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-1737 updated cvss 7.5
ansible: Extract-Zip function in win_unzip module does not check extracted path
-
Red Hat Ceph Storage 2 ansible Red Hat Ceph Storage 3 ansible Red Hat OpenStack Platform 10 (Newton) ansible Red Hat OpenStack Platform 13 (Queens) ansible Red Hat Storage 3 ansibleaffected: workaround, no fix planned “Currently, there is no mitigation for this issue except avoid using the affected win_unzip module when possible.”
-
Red Hat Ansible Engine 2 for RHEL 7 ansible 2.9.7-1.el7ae, ansible-test 2.9.7-1.el7ae Red Hat Ansible Engine 2 for RHEL 8 ansible 2.9.7-1.el8ae, ansible-test 2.9.7-1.el8aefixed: vendor fix “Currently, there is no mitigation for this issue except avoid using the affected win_unzip module when possible.” RHSA-2020:1542
-
Red Hat Ansible Engine 2.7 for RHEL 7 Server ansible 2.7.17-1.el7aefixed: vendor fix “Currently, there is no mitigation for this issue except avoid using the affected win_unzip module when possible.” RHSA-2020:1544
-
Red Hat Ansible Engine 2.8 for RHEL 7 Server ansible 2.8.11-1.el7ae Red Hat Ansible Engine 2.8 for RHEL 8 ansible 2.8.11-1.el8aefixed: vendor fix “Currently, there is no mitigation for this issue except avoid using the affected win_unzip module when possible.” RHSA-2020:1543
-
Red Hat Ansible Engine 2.9 for RHEL 7 Server ansible 2.9.7-1.el7ae, ansible-test 2.9.7-1.el7ae Red Hat Ansible Engine 2.9 for RHEL 8 ansible 2.9.7-1.el8ae, ansible-test 2.9.7-1.el8aefixed: vendor fix “Currently, there is no mitigation for this issue except avoid using the affected win_unzip module when possible.” RHSA-2020:1541
-
Red Hat Ansible Tower 3.4 for RHEL 7 Server ansible-tower-34/ansible-tower-memcached 1.4.15-28, ansible-tower-35/ansible-tower-memcached 1.4.15-28, ansible-tower-37/ansible-tower-memcached-rhel7 1.4.15-28fixed: vendor fix “Currently, there is no mitigation for this issue except avoid using the affected win_unzip module when possible.” RHBA-2020:0547
-
Red Hat Ansible Tower 3.5 for RHEL 7 Server ansible-tower-35/ansible-tower 3.5.6-1fixed: vendor fix “Currently, there is no mitigation for this issue except avoid using the affected win_unzip module when possible.” RHBA-2020:1539
-
Red Hat CloudForms Management Engine 5 ansible-tower, ansible-tower-ui, ansible-tower-setup, ansible-tower-server, ansible-tower-venv-tower, ansible-tower-venv-ansiblenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.37% chance of exploitation in the next 30 days, higher than 30% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | ansible | >=2.8.0a1, <2.8.9 >=2.9.0a1, <2.9.6 <2.7.17 >=2.8.0, <2.8.9 >=2.9.0, <2.9.6 |
2.8.9 2.9.6 2.7.17 |
Affected products
- Red Hat Ansible
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/ansible/ansible/pull/67799
web
-
github.com
/samdoran/ansible/commit/1de638b4d38d6d916588e2ad48d01f90dab8c36d
web
-
github.com
/samdoran/ansible/commit/aaf549d7870b8687209a3282841b59207735b676
web
-
github.com
/samdoran/ansible/commit/b60aa26e2313a8d52c0e0d3fd01696e797605b72
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/FWDK3QUVBULS3Q3PQTGEKUQYPSNOU5M3/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/QT27K5ZRGDPCH7GT3DRI3LO4IVDVQUB7/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/U3IMV3XEIUXL6S4KPLYYM4TVJQ2VNEP2/
vendor-advisory
-
security.gentoo.org
/glsa/202006-11
vendor-advisory, web, advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=CVE-2020-1737
web, issue-tracking, vendor-advisory, report
-
github.com
/ansible/ansible/issues/67795
web, third-party-advisory, report
-
nvd.nist.gov
/vuln/detail/CVE-2020-1737
advisory
-
github.com
/advisories/GHSA-893h-35v4-mxqx
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-9.yaml
web
-
github.com
/samdoran/ansible
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/FWDK3QUVBULS3Q3PQTGEKUQYPSNOU5M3
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/QT27K5ZRGDPCH7GT3DRI3LO4IVDVQUB7
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/U3IMV3XEIUXL6S4KPLYYM4TVJQ2VNEP2
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/QT27K5ZRGDPCH7GT3DRI3LO4IVDVQUB7/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/FWDK3QUVBULS3Q3PQTGEKUQYPSNOU5M3/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/U3IMV3XEIUXL6S4KPLYYM4TVJQ2VNEP2/
web
Sources
- CVE List CVE-2020-1737
- GitHub Advisory GHSA-893h-35v4-mxqx
- NVD CVE-2020-1737
- OSV PYSEC-2020-9
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.