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

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-06-26T20:53:00.000Z
- Modified: 2026-07-07T16:11:37.742Z
- 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:

```go
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.

(As written by GitHub Advisory Database.)

## Affected

- github.com/pterodactyl/wings (Go): from 1.11.9 before 1.12.2

## References

- <https://github.com/pterodactyl/wings/security/advisories/GHSA-rhq6-9rgh-v45c> (advisory, web)
- <https://github.com/pterodactyl/wings> (package)

## Sources

- GitHub Advisory Database: [GHSA-rhq6-9rgh-v45c](https://github.com/advisories/GHSA-rhq6-9rgh-v45c), CC-BY-4.0, modified 2026-07-07
- Go Vulnerability Database: [GO-2026-5814](https://pkg.go.dev/vuln/GO-2026-5814), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/GHSA-rhq6-9rgh-v45c · Whole record: https://cve.day/GHSA-rhq6-9rgh-v45c.json · Rebuilt by cve.day 2026-11-25T22:56:25.053Z
