GHSA-rhq6-9rgh-v45c: Pterodactyl Wings Chmod Operation Can Be Used Vulnerability
MODERATEGHSA-rhq6-9rgh-v45c is a MODERATE (CVSS 5.0) chmod operation can be used vulnerability (General Security Weakness) affecting Pterodactyl Wings libraries in the Go ecosystem. The issue involves chmod operation can be used to change permissions of files outside of the server container. Remediation is available by upgrading affected packages to version 1.12.2.
GHSA-rhq6-9rgh-v45c at a Glance
Security Impact
CVSS: 5.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N).
How to Fix GHSA-rhq6-9rgh-v45c
To remediate this vulnerability, upgrade all affected Pterodactyl Wings dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/pterodactyl/wings to 1.12.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/pterodactyl/wings
How to Check if You Are Affected
To determine whether your application is affected by GHSA-rhq6-9rgh-v45c, inspect your project dependencies for Pterodactyl Wings:
inspect dependencies for github.com/pterodactyl/wings
Analyze the terminal output to locate any version of Pterodactyl Wings in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Pterodactyl Wings, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-rhq6-9rgh-v45c Affected Pterodactyl Wings Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/pterodactyl/wings
|
Go |
≥ 1.11.9
< 1.12.2
|
1.12.2
|
References
Frequently Asked Questions
What is GHSA-rhq6-9rgh-v45c?
Which Pterodactyl Wings versions are affected?
What version fixes GHSA-rhq6-9rgh-v45c?
Is github.com/pterodactyl/wings affected?
What is the CVSS score of GHSA-rhq6-9rgh-v45c?
What CWE is associated with GHSA-rhq6-9rgh-v45c?
How can I check Go dependencies for GHSA-rhq6-9rgh-v45c?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rhq6-9rgh-v45c",
"modified" : "2026-06-26T20:53:00Z",
"published" : "2026-06-26T20:53:00Z",
"aliases" : [ ],
"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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pterodactyl/wings"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.11.9"
}, {
"fixed" : "1.12.2"
} ]
} ]
} ],
"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" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-26T20:53:00Z",
"nvd_published_at" : null
}
}