GHSA-rhq6-9rgh-v45c

Suggest an improvement
Source
https://github.com/advisories/GHSA-rhq6-9rgh-v45c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-rhq6-9rgh-v45c/GHSA-rhq6-9rgh-v45c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-rhq6-9rgh-v45c
Aliases
Published
2026-06-26T20:53:00Z
Modified
2026-07-07T16:11:37Z
Severity
  • 5.0 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N CVSS Calculator
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:

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.

Database specific
{
    "cwe_ids":  [],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-06-26T20:53:00Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

Go / github.com/pterodactyl/wings

Package

Name
github.com/pterodactyl/wings
View open source insights on deps.dev
Purl
pkg:golang/github.com/pterodactyl/wings

Affected 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"