GHSA-rhq6-9rgh-v45c
JSON

5.0medium

Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container

Severity
5.0medium CVSS:3.1 by GitHub
Published
Last changed
Also known as
GO-2026-5814

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:

func (fs *UnixFS) fchmodat(op string, dirfd int, name string, mode FileMode) error {
   return ensurePathError(unix.Fchmodat(dirfd, name, uint32(mode), 0), op, name)
}

This 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.

Affected

Product or packageVersionsReported by
github.com/pterodactyl/wings (Go)from 1.11.9 before 1.12.2GitHub Advisory Database, Go Vulnerability Database

What each source says

GitHub Advisory Database

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:

func (fs *UnixFS) fchmodat(op string, dirfd int, name string, mode FileMode) error {
   return ensurePathError(unix.Fchmodat(dirfd, name, uint32(mode), 0), op, name)
}

This 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.

Go Vulnerability Database

Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container in github.com/pterodactyl/wings

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-rhq6-9rgh-v45c changed 2026-07-07CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5814 changed 2026-07-07CC-BY-4.0