Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container
Moderate severity
GitHub Reviewed
Published
May 23, 2026
in
pterodactyl/wings
•
Updated Jun 26, 2026
Package
Affected versions
>= 1.11.9, < 1.12.2
Patched versions
1.12.2
Description
Published to the GitHub Advisory Database
Jun 26, 2026
Reviewed
Jun 26, 2026
Last updated
Jun 26, 2026
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:This call to the unix function
fchmodat(int fd, char* name, mode_t mode, int flags)does not have the flagAT_SYMLINK_NOFOLLOWset, 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.References