CVE-2017-14604

NameCVE-2017-14604
DescriptionGNOME Nautilus before 3.23.90 allows attackers to spoof a file type by using the .desktop file extension, as demonstrated by an attack in which a .desktop file's Name field ends in .pdf but this file's Exec field launches a malicious "sh -c" command. In other words, Nautilus provides no UI indication that a file actually has the potentially unsafe .desktop extension; instead, the UI only shows the .pdf extension. One (slightly) mitigating factor is that an attack requires the .desktop file to have execute permission. The solution is to ask the user to confirm that the file is supposed to be treated as a .desktop file, and then remember the user's answer in the metadata::trusted field.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SuSE, Mageia, GitHub code/issues, web search, more)
ReferencesDSA-3994-1
NVD severitymedium (attack range: remote)
Debian Bugs860268

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
nautilus (PTS)wheezy3.4.2-1+build1vulnerable
jessie3.14.1-2vulnerable
stretch3.22.3-1vulnerable
stretch (security)3.22.3-1+deb9u1fixed
buster, sid3.26.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
nautilussource(unstable)3.25.90-1medium860268
nautilussourcestretch3.22.3-1+deb9u1mediumDSA-3994-1

Notes

[jessie] - nautilus <no-dsa> (Minor issue, issue mitigated because does not silently decompress tarballs)
https://bugzilla.gnome.org/show_bug.cgi?id=777991
https://micahflee.com/2017/04/breaking-the-security-model-of-subgraph-os/
https://github.com/freedomofpress/securedrop/issues/2238
https://github.com/GNOME/nautilus/commit/1630f53481f445ada0a455e9979236d31a8d3bb0

Search for package or bug name: Reporting problems