{"id":"CVE-2026-54593","aliases":["CVE-2026-54593","GHSA-8r6w-3qq5-4p4r","GO-2026-6120"],"related":[],"kind":"vulnerability","state":"published","title":"Pterodactyl's improper JWT scoping allows subuser to upload files when not explicitly granted `file.create` permissions","summary":"Pterodactyl is a free, open-source game server management panel. Prior to Panel version 1.12.3 and Wings version 1.12.2, the Wings /upload/file endpoint accepted any valid panel-signed JWT that contained server_uuid, user_uuid, and unique_id claims without checking the token's intended purpose; because the Panel issues JWTs carrying those same claims for lower-privilege operations such as WebSocket authentication and file-download links, an authenticated subuser could reuse one of those tokens (for example a WebSocket token obtained with only the websocket.connect permission) by replaying it against /upload/file to write arbitrary files to the same server, despite never being granted the file.create permission. This issue is fixed in Panel version 1.12.3 and Wings version 1.12.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Pterodactyl is a free, open-source game server management panel. Prior to Panel version 1.12.3 and Wings version 1.12.2, the Wings /upload/file endpoint accepted any valid panel-signed JWT that contained server_uuid, user_uuid, and unique_id claims without checking the token's intended purpose; because the Panel issues JWTs carrying those same claims for lower-privilege operations such as WebSocket authentication and file-download links, an authenticated subuser could reuse one of those tokens (for example a WebSocket token obtained with only the websocket.connect permission) by replaying it against /upload/file to write arbitrary files to the same server, despite never being granted the file.create permission. This issue is fixed in Panel version 1.12.3 and Wings version 1.12.2.","source":"cvelist"},{"lang":"en","text":"### Summary\nA privilege escalation vulnerability exists in the Wings /upload/file endpoint due to insufficient validation of panel-signed JWTs. Wings accepts any valid panel-signed JWT containing `server_uuid`, `user_uuid`, and `unique_id`, regardless of the token’s intended purpose. Because the Panel issues JWTs with these same claims for other lower-privilege operations (such as WebSocket authentication and file download links), an authenticated subuser can reuse one of those tokens to upload arbitrary files without possessing the required `file.create` permission.\n\n### Impact\nAny subuser with permission to connect to a server's console, download files, or download backups could reuse those tokens to upload arbitrary files to the _same server_. A user that does not have access to a server as a subuser is not able to arbitrarily upload files.\n\n### Details\nThe panel generated JWT tokens for various purposes:\n- https://github.com/pterodactyl/panel/blob/0f82c105201b192d229f6abd5827e2ee7e672a05/app/Services/Backups/DownloadLinkService.php#L33-L36\n- https://github.com/pterodactyl/panel/blob/0f82c105201b192d229f6abd5827e2ee7e672a05/app/Http/Controllers/Api/Client/Servers/FileUploadController.php#L45\n- https://github.com/pterodactyl/panel/blob/0f82c105201b192d229f6abd5827e2ee7e672a05/app/Http/Controllers/Api/Client/Servers/WebsocketController.php#L58-L61\n- https://github.com/pterodactyl/panel/blob/0f82c105201b192d229f6abd5827e2ee7e672a05/app/Http/Controllers/Api/Client/Servers/FileController.php#L82-L85\nThough as the actual purpose is not conveyed part of the JWT tokens, this introduces this vulnerability of being able to do non-intended actions due to the expected fields (i.e. `server_uuid`) on most endpoints being the same when parsing it on wings' side.  \n\n### PoC\nCreate a new subuser that has the minimal amount of permissions on a server (`websocket.connect`). As that subuser, retrieve a websocket JWT token from the `GET /api/client/servers/[...]/websocket` endpoint (in my case, I manually just make a request under that user's browser session; you can probably just resend the /websocket request in browser console to get a fresh unused token). Using that websocket token, we can abuse this by directly using it in the `/upload/file` endpoint of the wings node instead of using it for websocket authentication:\n```python3\nimport requests\n\nwings_url = 'http://[...]:8080'\nwebsocket_token = '[...]'\n\nres = requests.post(f'{wings_url}/upload/file', params = {\n    'token': websocket_token,\n}, files = {\n    'files': ('file-upload.txt', b'Hello, World!'),\n})\nprint(res.status_code, res.content)\n```\nObserve, that even though our subuser never has permissions outside viewing the console, they are able to write arbitrary files in the server. This pattern happens in a lot of other action, but this is probably the most interesting one.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Pterodactyl's improper JWT scoping allows subuser to upload files when not explicitly granted `file.create` permissions in github.com/pterodactyl/wings","format":"markdown","source":"go"},{"lang":"es","text":"Pterodactyl es un panel de gestión de servidores de juegos gratuito y de código abierto. Antes de la versión 1.12.3 del Panel y la versión 1.12.2 de Wings, el endpoint /upload/file de Wings aceptaba cualquier JWT válido firmado por el panel que contenía las claims server_uuid, user_uuid y unique_id sin verificar el propósito previsto del token; porque el Panel emite JWTs que contienen esas mismas claims para operaciones de menor privilegio, como la autenticación de WebSocket y los enlaces de descarga de archivos, un subusuario autenticado podía reutilizar uno de esos tokens (por ejemplo, un token de WebSocket obtenido solo con el permiso websocket.connect) al reproducirlo contra /upload/file para escribir archivos arbitrarios en el mismo servidor, a pesar de que nunca se le concedió el permiso file.create. Este problema está solucionado en la versión 1.12.3 del Panel y la versión 1.12.2 de Wings.","source":"nvd"}],"published":"2026-07-28T15:42:56.971Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-1259","CWE-1270"],"affected":[{"ranges":[{"version":"< 1.12.3","status":"affected"}],"vendor":"pterodactyl","product":"panel","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.12.3"}],"ecosystem":"Packagist","package":"pterodactyl/panel","purl":"pkg:composer/pterodactyl/panel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.12.2"}],"ecosystem":"Go","package":"github.com/pterodactyl/wings","purl":"pkg:golang/github.com/pterodactyl/wings","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.12.2"}],"ecosystem":"Go","package":"github.com/pterodactyl/wings","purl":"pkg:golang/github.com/pterodactyl/wings","source":"go"}],"references":[{"url":"https://github.com/pterodactyl/panel/security/advisories/GHSA-8r6w-3qq5-4p4r","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/pterodactyl/panel/pull/5636","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/pterodactyl/panel/commit/7ffcd636310bb72b54bac3280d2a15e727feded7","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/pterodactyl/wings/commit/d0ddc80844479302abdaf9654de3bacd511c0f5c","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/pterodactyl/panel","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-07-28T16:39:28.643Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54593","url":"https://www.cve.org/CVERecord?id=CVE-2026-54593","licence":"CVE Terms of Use","modified":"2026-07-28T16:39:43.359Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8r6w-3qq5-4p4r","url":"https://github.com/advisories/GHSA-8r6w-3qq5-4p4r","licence":"CC-BY-4.0","modified":"2026-08-18T15:10:50.705Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6120","url":"https://pkg.go.dev/vuln/GO-2026-6120","licence":"CC-BY-4.0","modified":"2026-08-18T15:00:21.779Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54593","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54593","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:30.342Z","epss":{"score":0.00357,"percentile":0.31489,"date":"2026-12-01T12:00:22.000Z"}}