{"id":"GHSA-rhq6-9rgh-v45c","aliases":["GO-2026-5814"],"url":"https://o3.security/vulnerability/GHSA-rhq6-9rgh-v45c","summary":"Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container","details":"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.","published":"2026-06-26T20:53:00Z","modified":"2026-07-07T16:11:37.742772925Z","cvss":{"score":5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/pterodactyl/wings","fixedVersion":"1.12.2"}],"fix":null,"references":[{"type":"WEB","url":"https://github.com/pterodactyl/wings/security/advisories/GHSA-rhq6-9rgh-v45c"},{"type":"PACKAGE","url":"https://github.com/pterodactyl/wings"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-07T16:11:37.742772925Z"}}