{"id":"CVE-2026-52855","aliases":["GHSA-pfvc-3p5h-x7h6","GO-2026-6158"],"url":"https://o3.security/vulnerability/CVE-2026-52855","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.<path>}}` 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.","published":"2026-07-31T16:16:42.470Z","modified":"2026-10-28T02:30:24.672453773Z","cvss":{"score":9.9,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"},"epss":{"score":0.0029,"percentile":0.21676,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/pterodactyl/wings","fixedVersion":"1.12.3"}],"fix":{"url":"https://github.com/pterodactyl/wings/commit/eb65e27ae077a63e38518c490768486af1cd86a9","label":"pterodactyl/wings@eb65e27"},"references":[{"type":"WEB","url":"https://github.com/pterodactyl/wings/releases/tag/v1.12.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52855.json"},{"type":"ADVISORY","url":"https://github.com/pterodactyl/wings/security/advisories/GHSA-pfvc-3p5h-x7h6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52855"},{"type":"FIX","url":"https://github.com/pterodactyl/wings/commit/eb65e27ae077a63e38518c490768486af1cd86a9"},{"type":"PACKAGE","url":"https://github.com/pterodactyl/wings"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:24.672453773Z"}}