CVE-2023-25152: Github.com/pterodactyl/wings Pterodactyl Wings Contains UNIX Symbolic Vulnerability
HIGHCVE-2023-25152 is a HIGH (CVSS 8.4) pterodactyl wings contains unix symbolic vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Github.com/pterodactyl/wings libraries in the Go ecosystem. The issue involves pterodactyl wings contains unix symbolic link (symlink) following. Remediation is available by upgrading affected packages to version 1.7.3, 1.11.3.
CVE-2023-25152 at a Glance
Security Impact
CVSS: 8.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H).
How to Fix CVE-2023-25152
To remediate this vulnerability, upgrade all affected Github.com/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.7.3
Upgrade github.com/pterodactyl/wings to 1.11.3
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 CVE-2023-25152, inspect your project dependencies for Github.com/pterodactyl/wings:
inspect dependencies for github.com/pterodactyl/wings
Analyze the terminal output to locate any version of Github.com/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.7.3), 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 CWE-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Github.com/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
CVE-2023-25152 Affected Github.com/pterodactyl/wings Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/pterodactyl/wings
|
Go |
< 1.7.3
|
1.7.3
|
|
github.com/pterodactyl/wings
|
Go |
≥ 1.11.0
< 1.11.3
|
1.11.3
|
References
Frequently Asked Questions
What is CVE-2023-25152?
Which Github.com/pterodactyl/wings versions are affected?
What version fixes CVE-2023-25152?
Is github.com/pterodactyl/wings affected?
What is the CVSS score of CVE-2023-25152?
What CWE is associated with CVE-2023-25152?
How can I check Go dependencies for CVE-2023-25152?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p8r3-83r8-jwj5",
"modified" : "2023-02-08T22:40:37Z",
"published" : "2023-02-08T18:19:56Z",
"aliases" : [ "CVE-2023-25152" ],
"summary" : "Pterodactyl Wings contains UNIX Symbolic Link (Symlink) Following",
"details" : "### Impact\n\nThis vulnerability impacts anyone running the affected versions of Wings. The vulnerability can be used to create new files and on the host system that previously did not exist, potentially allowing attackers to change their resource allocations, promote their containers to privileged mode, or potentially add ssh authorized keys to allow the attacker access to a remote shell on the target machine.\n\nIn order to use this exploit, an attacker must have an existing \"server\" allocated and controlled by Wings. Information on how the exploitation of this vulnerability works will be released on February 24th, 2023 in North America.\n\n### Patches\n\nThis vulnerability has been resolved in version `v1.11.3` of Wings, and has been back-ported to the 1.7 release series in `v1.7.3`.\n\nAnyone running `v1.11.x` should upgrade to `v1.11.3` and anyone running `v1.7.x` should upgrade to `v1.7.3`.\n\n### Workarounds\n\nNone at this time.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pterodactyl/wings"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.7.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pterodactyl/wings"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.11.0"
}, {
"fixed" : "1.11.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/wings/security/advisories/GHSA-p8r3-83r8-jwj5"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-25152"
}, {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/wings/commit/dac9685298c3c1c49b3109fa4241aa88272b9f14"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pterodactyl/wings"
}, {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/wings/releases/tag/v1.11.3"
}, {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/wings/releases/tag/v1.7.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-59", "CWE-61" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-08T18:19:56Z",
"nvd_published_at" : "2023-02-08T19:15:00Z"
}
}