{"id":"GO-2020-0027","summary":"Privilege escalation in github.com/google/fscrypt","details":"After dropping and then elevating process privileges euid, guid, and groups are not properly restored to their original values, allowing an unprivileged user to gain membership in the root group.","aliases":["CVE-2018-6558","GHSA-qj26-7grj-whg3"],"modified":"2024-05-20T16:03:47Z","published":"2021-04-14T20:04:52Z","database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2020-0027"},"references":[{"type":"FIX","url":"https://github.com/google/fscrypt/commit/3022c1603d968c22f147b4a2c49c4637dd1be91b"},{"type":"WEB","url":"https://github.com/google/fscrypt/issues/77"}],"affected":[{"package":{"name":"github.com/google/fscrypt","ecosystem":"Go","purl":"pkg:golang/github.com/google/fscrypt"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.2.4"}]}],"ecosystem_specific":{"imports":[{"symbols":["Handle.StartAsPamUser","Handle.StopAsPamUser","NewHandle"],"path":"github.com/google/fscrypt/pam"},{"path":"github.com/google/fscrypt/security","symbols":["FindKey","InsertKey","RemoveKey","SetProcessPrivileges","UserKeyringID","setGids","setGroups","setUids"]}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2020-0027.json"}}],"schema_version":"1.7.3"}