CVE-2020-1736 Incorrect Permission Assignment for Critical Resource in Ansible

Low 2.2 Published Updated

Ansible Engine fails to restrict file permissions during atomic moves, potentially exposing sensitive data to unauthorized users.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-1736?

CVE-2020-1736 is a low-severity vulnerability in Fedoraproject Fedora, 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 Ansible Engine when a file is moved using atomic_move primitive as the file mode cannot be specified. This sets the destination files world-readable if the destination file does not exist and if the file exists, the file could be changed to have less restrictive permissions before the move. This could lead to the disclosure of sensitive data. All versions in 2.7.x, 2.8.x and 2.9.x branches are believed to be vulnerable.

Weakness: CWE-732

Which versions are affected by CVE-2020-1736?

3 open source packages ship an affected version, including ansible. It affects 5 products.

PackageAffectedFixed in
ansible PyPIAll versions2.7.17, 2.8.9, 2.9.6
ansible PyPIFrom 2.7.0 to 2.10.0None
ansible PyPIFrom 2.7.0 to 2.10.0None

Products include Fedoraproject Fedora, Redhat Ansible, Redhat Ansible Tower, Redhat Cloudforms Management Engine, Redhat Openstack.

How do I fix CVE-2020-1736?

Upgrade ansible to a fixed version for your release line: 2.7.17, 2.8.9 or 2.9.6.

Is CVE-2020-1736 being exploited?

There is no known exploitation of CVE-2020-1736 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-1736, GHSA-x7jh-595q-wq82, PYSEC-2020-8, UBUNTU-CVE-2020-1736.

Is CVE-2020-1736 in your software?

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

Check your SBOMs for free