GHSA-rhq6-9rgh-v45c: Pterodactyl Wings Chmod Operation Can Be Used Vulnerability

MODERATE
CVSS 5.0
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-rhq6-9rgh-v45c
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification General Security Weakness
Affected Product Pterodactyl Wings
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (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.

github.com/pterodactyl/wings fixed: 1.12.2
Upgrade github.com/pterodactyl/wings to 1.12.2
Verify Direct and Transitive Dependencies

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

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.

GHSA-rhq6-9rgh-v45c Affected Pterodactyl Wings Versions

1 component(s)
Fixed Versions:
1.12.2
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?
GHSA-rhq6-9rgh-v45c is a security vulnerability in Pterodactyl Wings involving Chmod operation can be used to change permissions of files outside of the server container under General Security Weakness.
Which Pterodactyl Wings versions are affected?
Affected versions include releases prior to 1.12.2 across affected packages: github.com/pterodactyl/wings.
What version fixes GHSA-rhq6-9rgh-v45c?
Upgrading to 1.12.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/pterodactyl/wings affected?
Yes, github.com/pterodactyl/wings is affected in releases prior to 1.12.2. Upgrade your dependency to 1.12.2 or later.
What is the CVSS score of GHSA-rhq6-9rgh-v45c?
GHSA-rhq6-9rgh-v45c has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N.
What CWE is associated with GHSA-rhq6-9rgh-v45c?
GHSA-rhq6-9rgh-v45c is classified under General Security Weakness.
How can I check Go dependencies for GHSA-rhq6-9rgh-v45c?
Run the dependency tree command: 'inspect dependencies for github.com/pterodactyl/wings'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}