Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/pterodactyl/wings
  4. ›
  5. GHSA-rhq6-9rgh-v45c

GHSA-rhq6-9rgh-v45c: Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container

June 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:

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.

References

  • github.com/advisories/GHSA-rhq6-9rgh-v45c
  • github.com/pterodactyl/wings/security/advisories/GHSA-rhq6-9rgh-v45c

Code Behaviors & Features

Detect and mitigate GHSA-rhq6-9rgh-v45c with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.11.9 before 1.12.2

Fixed versions

  • 1.12.2

Solution

Upgrade to version 1.12.2 or above.

Impact 5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N

Learn more about CVSS

Source file

go/github.com/pterodactyl/wings/GHSA-rhq6-9rgh-v45c.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 11 Jul 2026 00:19:00 +0000.