{"id":"GHSA-rhq6-9rgh-v45c","aliases":["GHSA-rhq6-9rgh-v45c","GO-2026-5814"],"related":[],"kind":"vulnerability","state":"published","title":"Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container","summary":"In `wings/internal/ufs/fs_unix.go` (line 92-94), this function is defined and is used to change permissions of files in the server:\n\n```go\nfunc (fs *UnixFS) fchmodat(op string, dirfd int, name string, mode FileMode) error {\n   return ensurePathError(unix.Fchmodat(dirfd, name, uint32(mode), 0), op, name)\n}\n```\n\nThis call to the unix function `fchmodat(int fd, char* name, mode_t mode, int flags)`  does not have the flag `AT_SYMLINK_NOFOLLOW` set, and Wings neither checks or validate if the target file is a symlink. This allows one to change permissions of files or folders outside of the server container by making symlinks to existing files in the host and then chmoding it.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"In `wings/internal/ufs/fs_unix.go` (line 92-94), this function is defined and is used to change permissions of files in the server:\n\n```go\nfunc (fs *UnixFS) fchmodat(op string, dirfd int, name string, mode FileMode) error {\n   return ensurePathError(unix.Fchmodat(dirfd, name, uint32(mode), 0), op, name)\n}\n```\n\nThis call to the unix function `fchmodat(int fd, char* name, mode_t mode, int flags)`  does not have the flag `AT_SYMLINK_NOFOLLOW` set, and Wings neither checks or validate if the target file is a symlink. This allows one to change permissions of files or folders outside of the server container by making symlinks to existing files in the host and then chmoding it.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container in github.com/pterodactyl/wings","format":"markdown","source":"go"}],"published":"2026-06-26T20:53:00.000Z","modified":"2026-07-07T16:11:37.742Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N","score":5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"1.11.9","status":"affected","fixed":"1.12.2"}],"ecosystem":"Go","package":"github.com/pterodactyl/wings","purl":"pkg:golang/github.com/pterodactyl/wings","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.11.9","status":"affected","fixed":"1.12.2"}],"ecosystem":"Go","package":"github.com/pterodactyl/wings","purl":"pkg:golang/github.com/pterodactyl/wings","source":"go"}],"references":[{"url":"https://github.com/pterodactyl/wings/security/advisories/GHSA-rhq6-9rgh-v45c","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/pterodactyl/wings","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rhq6-9rgh-v45c","url":"https://github.com/advisories/GHSA-rhq6-9rgh-v45c","licence":"CC-BY-4.0","modified":"2026-07-07T16:11:37.742Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5814","url":"https://pkg.go.dev/vuln/GO-2026-5814","licence":"CC-BY-4.0","modified":"2026-07-07T16:01:34.762Z"}],"updatedAt":"2026-11-25T22:56:25.053Z"}