CVE-2020-1735 Path Traversal in Ansible
An attacker can intercept the Ansible fetch module to inject arbitrary paths, allowing modification of files on the controller node.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-1735?
CVE-2020-1735 is a medium-severity path traversal vulnerability in Debian Debian Linux, published on 16 Mar 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
A flaw was found in the Ansible Engine when the fetch module is used. An attacker could intercept the module, inject a new path, and then choose a new destination path on the controller node. All versions in 2.7.x, 2.8.x and 2.9.x branches are believed to be vulnerable.
Weakness: CWE-22
Which versions are affected by CVE-2020-1735?
7 open source packages ship an affected version, including ansible. It affects 6 products.
| Package | Affected | Fixed in |
|---|---|---|
ansible PyPI | All versions | 2.7.17, 2.8.9, 2.9.6 |
ansible PyPI | From 2.7.0a1 | 2.7.18 |
ansible PyPI | From 2.7.0a1 | 2.7.18 |
ansible PyPI | From 2.8.0a1 | 2.8.12 |
ansible PyPI | From 2.8.0a1 | 2.8.12 |
ansible PyPI | From 2.9.0a1 | 2.9.8 |
1 more packages
ansible PyPI | From 2.9.0a1 | 2.9.8 |
Products include Debian Debian Linux, Fedoraproject Fedora, Redhat Ansible, Redhat Ansible Tower, Redhat Cloudforms Management Engine, Redhat Openstack.
How do I fix CVE-2020-1735?
Upgrade ansible to a fixed version for your release line: 2.7.17, 2.8.9, 2.9.6 or 2.7.18.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2020-1735 being exploited?
There is no known exploitation of CVE-2020-1735 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2020-1735, GHSA-gfr2-qpxh-qj9m, PYSEC-2020-7, UBUNTU-CVE-2020-1735.