A vulnerability was found in Flatpak. A third-party app repository could include malicious apps that contain files with inappropriate permissions, for example setuid or world-writable. The files are deployed with those permissions, which would let a local attacker run the setuid executable or write to the world-writable location. In the case of the "system helper" component, files deployed as part of the app are owned by root, so in the worst case they could be setuid root. Upstream issue: https://github.com/flatpak/flatpak/issues/845
Acknowledgments: Name: Colin Walters (Red Hat)
Created flatpak tracking bugs for this issue: Affects: fedora-24 [bug 1465027]
References: http://seclists.org/oss-sec/2017/q2/569
Upstream commit for 0.8.7 branch: https://github.com/flatpak/flatpak/commit/2c8e2417de This is already included in flatpak-0.8.7-1.el7