{"id":"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.","aliases":["GO-2026-5814"],"modified":"2026-07-07T16:11:37.742772925Z","published":"2026-06-26T20:53:00Z","database_specific":{"cwe_ids":[],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-06-26T20:53:00Z","nvd_published_at":null},"references":[{"type":"WEB","url":"https://github.com/pterodactyl/wings/security/advisories/GHSA-rhq6-9rgh-v45c"},{"type":"PACKAGE","url":"https://github.com/pterodactyl/wings"}],"affected":[{"package":{"name":"github.com/pterodactyl/wings","ecosystem":"Go","purl":"pkg:golang/github.com/pterodactyl/wings"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.11.9"},{"fixed":"1.12.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-rhq6-9rgh-v45c/GHSA-rhq6-9rgh-v45c.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N"}]}