Lucene search

K
redhatcveRedhat.comRH:CVE-2020-1736
HistoryFeb 18, 2020 - 2:30 p.m.

CVE-2020-1736

2020-02-1814:30:08
redhat.com
access.redhat.com
17

0.001 Low

EPSS

Percentile

32.1%

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 issue affects only the newly created files and not existing ones. If the file already exists at the final destination, those permissions are retained. This could lead to the disclosure of sensitive data.

Mitigation

This issue can be mitigated by specifying the "mode" on the task. That just leaves a race condition in place where newly created files that specify a mode in the task briefly go from 666 - umask to the final mode. An alternative workaround if many new files are created and to avoid setting a specific mode for each file would be to set the "mode" to "preserve" value. That will maintain the permissions of the source file on the controller in the final file on the managed host.