{"answers":{"affected":"3 open source packages ship an affected version, including github.com/pterodactyl/wings.","exploited":"There is no known exploitation of GHSA-rhq6-9rgh-v45c in the wild and no public exploit code.","fix":"Upgrade github.com/pterodactyl/wings to 1.12.2 or later.","what":"GHSA-rhq6-9rgh-v45c is a path traversal vulnerability in github.com/pterodactyl/wings, published on 26 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-rhq6-9rgh-v45c and fix it if it is affected.\n\nWhat it is: GHSA-rhq6-9rgh-v45c is a path traversal vulnerability in github.com/pterodactyl/wings, published on 26 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-rhq6-9rgh-v45c in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/pterodactyl/wings (Go): affected from 1.11.9; fixed in 1.12.2\n- github.com/pterodactyl/wings (Go): affected from 1.11.9; fixed in 1.12.2\n- github.com/pterodactyl/wings (Go): affected from 1.11.9; fixed in 1.12.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-rhq6-9rgh-v45c/ (Markdown: https://insights.sbomify.com/GHSA-rhq6-9rgh-v45c/index.md)","id":"GHSA-rhq6-9rgh-v45c","markdown":"https://insights.sbomify.com/GHSA-rhq6-9rgh-v45c/index.md","name":"GHSA-rhq6-9rgh-v45c","record":{"aliases":["GO-2026-5814"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["privilege_escalation","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Pterodactyl Wings","requires_auth":"low_privilege","summary":"An attacker with low privileges can change permissions of files outside the server container via symlink manipulation, potentially leading to privilege escalation.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"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:\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.","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container","id":"GHSA-rhq6-9rgh-v45c","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["1.12.2"],"introduced":["1.11.9"],"last_affected":[],"package":"github.com/pterodactyl/wings","purl":null,"source":"GHSA-rhq6-9rgh-v45c"},{"ecosystem":"Go","fixed":["1.12.2"],"introduced":["1.11.9"],"last_affected":[],"package":"github.com/pterodactyl/wings","purl":"pkg:golang/github.com/pterodactyl/wings","source":"GHSA-rhq6-9rgh-v45c"},{"ecosystem":"Go","fixed":["1.12.2"],"introduced":["1.11.9"],"last_affected":[],"package":"github.com/pterodactyl/wings","purl":"pkg:golang/github.com/pterodactyl/wings","source":"GO-2026-5814"}],"products":null,"published":"2026-06-26","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"An attacker with low privileges can change permissions of files outside the server container via symlink manipulation, potentially leading to privilege escalation.","url":"https://insights.sbomify.com/GHSA-rhq6-9rgh-v45c/"}