Bug 1490872 (CVE-2017-14604)

Summary: CVE-2017-14604 nautilus: Insufficient validation of trust of .desktop files with execute permission
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: alexl, caillon+fedoraproject, cosimo.cecchi, csoriano, gnome-sig, mclasen, rhughes, rstrode, sandmann
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nautilus 3.24 Doc Type: If docs needed, set a value
Doc Text:
An untrusted .desktop file with executable permission set could choose its displayed name and icon, and execute commands without warning when opened by the user. An attacker could use this flaw to trick a user into opening a .desktop file disguised as a document, such as a PDF, and execute arbitrary commands.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-25 14:51:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1490873, 1490948, 1490949    
Bug Blocks: 1490875    

Description Andrej Nemec 2017-09-12 12:08:14 UTC
Nautilus trusts desktop files that have the executable bit set, and doesn't replace the displayed icon or the displayed name until it's trusted, which prevents from running random programs by a malicious desktop file.

However, the executable permission is preserved if the desktop file comes from a compressed file. A maliciously crafted file opened by the user could result in code execution. 

Upstream issue:

https://bugzilla.gnome.org/show_bug.cgi?id=777991

Upstream patch:

https://bugzilla.gnome.org/attachment.cgi?id=345047&action=diff

Comment 1 Andrej Nemec 2017-09-12 12:08:40 UTC
Created nautilus tracking bugs for this issue:

Affects: fedora-25 [bug 1490873]

Comment 3 errata-xmlrpc 2018-01-25 14:44:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:0223 https://access.redhat.com/errata/RHSA-2018:0223