CVE-2020-1735 Path Traversal in Ansible

Medium 4.2 Published Updated

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.

PackageAffectedFixed in
ansible PyPIAll versions2.7.17, 2.8.9, 2.9.6
ansible PyPIFrom 2.7.0a12.7.18
ansible PyPIFrom 2.7.0a12.7.18
ansible PyPIFrom 2.8.0a12.8.12
ansible PyPIFrom 2.8.0a12.8.12
ansible PyPIFrom 2.9.0a12.9.8
1 more packages
ansible PyPIFrom 2.9.0a12.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.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-1735, GHSA-gfr2-qpxh-qj9m, PYSEC-2020-7, UBUNTU-CVE-2020-1735.

Is CVE-2020-1735 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free