{"id":"GHSA-pfvc-3p5h-x7h6","summary":"Wings exposes node configuration secrets through egg configuration-file templating","details":"### Impact\n\n**Type:** Exposure of sensitive information / insufficiently protected credentials\nleading to privilege escalation and full node compromise.\n\nWings exposes its **entire** daemon configuration to the egg configuration-file\ntemplating engine. When Wings renders a server's configuration files, any\n`{{config.\u003cpath\u003e}}` placeholder in a replacement value is resolved against the\nfull marshalled daemon configuration, with no restriction on which paths may be\nread.\n\nBecause the Panel substitutes **user-controlled** egg variable values into these\nreplacements before sending them to Wings, a low-privileged user can smuggle a\n`{{config.*}}` placeholder through a variable value. The placeholder is then\nresolved by Wings and written into a file inside the user's own server, where it\ncan be read via the file manager or SFTP.\n\nThis allows reading, among other values:\n\n- `{{config.token}}` - the node's daemon token, which is both the API bearer for\n  the Panel⇆Wings channel **and** the HMAC signing key for every JWT the node\n  issues;\n- `{{config.token_id}}`;\n- `{{config.docker.registries}}` - configured container-registry credentials.\n\n**Who is impacted:** Any deployment where a user who is not fully trusted can set\nan egg variable value (e.g. a server owner or a subuser with the `startup.update`\npermission) **and** the server's egg renders a user-editable variable into a\nconfiguration file via `{{server.build.env.*}}`. This pattern is common across\nstock and community eggs, so most multi-tenant / shared-hosting deployments are\naffected.\n\n**Resulting impact:** Disclosure of the node daemon token lets the attacker forge\nauthentication tokens and act against **every server on that node**, a full-node compromise reachable from a low-privileged\naccount.\n\n### Patches\n\nYes. Fixed in **Wings `v1.12.3`** (Panel is unaffected; the fix is Wings-only).\n\nWings no longer exposes its full configuration to the templating engine only an\nexplicit, non-secret subset (the Docker network interface) can be resolved by\n`{{config.*}}` placeholders.\n\nUsers should upgrade Wings to `v1.12.3` or later.\n\n**After upgrading, rotate the affected nodes' daemon tokens**, since a previously\nexfiltrated token remains valid until rotated (Admin → Nodes → Configuration →\nreset the token, then re-deploy `config.yml` to the node).\n\n### Workarounds\n\nFor operators who cannot upgrade immediately:\n\n- Audit your eggs and ensure no **user-editable** variable is rendered into a\n  configuration file, or mark such variables non-editable.\n\nThese reduce exposure but are not a complete fix; upgrading Wings is the\nrecommended action.","aliases":["CVE-2026-52855","GO-2026-6158"],"modified":"2026-08-18T15:11:12.237761495Z","published":"2026-07-31T16:16:46Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-07-31T16:16:46Z","nvd_published_at":null,"cwe_ids":["CWE-200","CWE-522"],"severity":"CRITICAL"},"references":[{"type":"WEB","url":"https://github.com/pterodactyl/wings/security/advisories/GHSA-pfvc-3p5h-x7h6"},{"type":"WEB","url":"https://github.com/pterodactyl/wings/commit/eb65e27ae077a63e38518c490768486af1cd86a9"},{"type":"PACKAGE","url":"https://github.com/pterodactyl/wings"},{"type":"WEB","url":"https://github.com/pterodactyl/wings/releases/tag/v1.12.3"}],"affected":[{"package":{"name":"github.com/pterodactyl/wings","ecosystem":"Go","purl":"pkg:golang/github.com/pterodactyl/wings"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.12.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-pfvc-3p5h-x7h6/GHSA-pfvc-3p5h-x7h6.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}