{"id":"GHSA-rhq6-9rgh-v45c","aliases":["GO-2026-5814"],"status":"published","title":"Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container","description":"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.","severity":{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2026-06-26T20:53:00Z","modified":"2026-07-07T16:11:37Z","fixes":[{"ecosystem":"Go","package":"github.com/pterodactyl/wings","fixed_in":["1.12.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/pterodactyl/wings","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.11.9"},{"fixed":"1.12.2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/pterodactyl/wings","ranges":[{"type":"SEMVER","events":[{"introduced":"1.11.9"},{"fixed":"1.12.2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/pterodactyl/wings","ranges":[{"type":"SEMVER","events":[{"introduced":"1.11.9"},{"fixed":"1.12.2"}]}]}],"references":[{"url":"https://github.com/pterodactyl/wings/security/advisories/GHSA-rhq6-9rgh-v45c","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-rhq6-9rgh-v45c"},{"url":"https://github.com/pterodactyl/wings","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-rhq6-9rgh-v45c","title":"Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container","description":"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.","status":"published","published":"2026-06-26T20:53:00Z","modified":"2026-06-26T20:53:03Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T14:40:34.713036Z"}],"osv":[{"id":"GHSA-rhq6-9rgh-v45c","title":"Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container","description":"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.","status":"published","published":"2026-06-26T20:53:00Z","modified":"2026-07-07T16:11:37.742772925Z","cvss":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:46:55.877614Z"},{"id":"GO-2026-5814","title":"Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container in github.com/pterodactyl/wings","description":"Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container in github.com/pterodactyl/wings","status":"published","published":"2026-07-07T15:26:32Z","modified":"2026-07-07T16:01:34.762076614Z","updated_at":"2026-11-02T15:47:02.838915Z"}]}}
