Files
vuln-osv/data/Go/GHSA-rhq6-9rgh-v45c.json
T

1 line
1.7 KiB
JSON

{"schema_version":"1.9.0","id":"GHSA-rhq6-9rgh-v45c","published":"2026-06-26T20:53:00Z","modified":"2026-07-07T16:11:37.742772925Z","aliases":["GO-2026-5814"],"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:\n\n```go\nfunc (fs *UnixFS) fchmodat(op string, dirfd int, name string, mode FileMode) error {\n return ensurePathError(unix.Fchmodat(dirfd, name, uint32(mode), 0), op, name)\n}\n```\n\nThis 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":[{"package":{"name":"github.com/pterodactyl/wings","ecosystem":"Go","purl":"pkg:golang/github.com/pterodactyl/wings"},"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"}}],"references":[{"type":"WEB","url":"https://github.com/pterodactyl/wings/security/advisories/GHSA-rhq6-9rgh-v45c"},{"type":"PACKAGE","url":"https://github.com/pterodactyl/wings"}],"database_specific":{"cwe_ids":[],"github_reviewed":true,"github_reviewed_at":"2026-06-26T20:53:00Z","nvd_published_at":null,"severity":"MODERATE"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N"}]}