An issue was discovered in GOG Galaxy Client 2.0.17. Local escalation of privileges is possible when a user starts or uninstalls a game because of weak file permissions and missing file integrity checks.
http://daniels-it-blog.blogspot.com/2020/07/gog-galaxy-escalation-of-privileges.html