{"id":"GHSA-qcr9-wmgw-2q4c","aliases":[],"summary":"Traefik Enterprise OIDC and OAuthClientCreds middlewares store session and token payloads with unauthenticated AES-CTR encryption and a non-cryptographic CSRF signature","published_at":"2026-10-08T12:56:59Z","modified_at":"2026-10-08T13:11:13Z","products":[{"slug":"traefik","name":"Traefik","category":"proxy"}],"rating":{"severity":"high","score":7,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"priority":9,"record_count":1,"vendors":["GitHub"],"details":"## Summary\r\n\r\nThere is a high severity vulnerability in Traefik Enterprise's `OIDC` and `OAuthClientCreds` middlewares. The data they store outside the gateway (session cookies, state cookies, KV session data and cached OAuth tokens) is encrypted with AES in CTR mode, which provides no integrity check, so a tampered payload is decrypted and accepted instead of being rejected. The encryption keys are the configured secrets used as is, so a payload written for one authentication source or middleware decrypts in another one that shares the same secret, and the CSRF token of the `OIDC` middleware is \"signed\" with the non-cryptographic FNV-1a hash and compared in non-constant time.\r\n\r\nAn attacker holding a valid payload (for example, the cookie of their own session) can modify it in a predictable way, or reuse it in a context it was not issued for, to alter the session data or the cached token the middleware trusts. The CSRF protection of the middleware can also be weakened, as the token is not a keyed MAC.\r\n\r\n## Patches\r\n\r\n- https://github.com/traefik/enterprise/releases/tag/v2.12.11\r\n\r\nSession and state cookies, KV sessions and cached tokens written before the upgrade cannot be decoded by the patched versions: users log in once more and the middleware fetches one fresh token. No configuration change is required.\r\n\r\n## For more information\r\n\r\nIf you have any questions or comments about this advisory, please [open a Zendesk ticket](https://traefik.zendesk.com).","affected_stack":[{"ecosystem":"GitHub","package":"traefik/enterprise/Traefik Enterprise","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.2.0"},{"fixed":"2.12.11"}]}],"fixed":["2.12.11"],"provider":"github-repo-advisories","source":"GHSA-qcr9-wmgw-2q4c","relation":"self"}],"affected_other":[],"product_status":[],"records":[{"provider":"github-repo-advisories","source_id":"GHSA-qcr9-wmgw-2q4c","relation":"self","url":"https://github.com/traefik/enterprise/security/advisories/GHSA-qcr9-wmgw-2q4c","license":"GitHub Terms of Service","published_at":"2026-10-08T12:56:59Z","modified_at":"2026-10-08T13:11:13Z","summary":"Traefik Enterprise OIDC and OAuthClientCreds middlewares store session and token payloads with unauthenticated AES-CTR encryption and a non-cryptographic CSRF signature","details":"## Summary\r\n\r\nThere is a high severity vulnerability in Traefik Enterprise's `OIDC` and `OAuthClientCreds` middlewares. The data they store outside the gateway (session cookies, state cookies, KV session data and cached OAuth tokens) is encrypted with AES in CTR mode, which provides no integrity check, so a tampered payload is decrypted and accepted instead of being rejected. The encryption keys are the configured secrets used as is, so a payload written for one authentication source or middleware decrypts in another one that shares the same secret, and the CSRF token of the `OIDC` middleware is \"signed\" with the non-cryptographic FNV-1a hash and compared in non-constant time.\r\n\r\nAn attacker holding a valid payload (for example, the cookie of their own session) can modify it in a predictable way, or reuse it in a context it was not issued for, to alter the session data or the cached token the middleware trusts. The CSRF protection of the middleware can also be weakened, as the token is not a keyed MAC.\r\n\r\n## Patches\r\n\r\n- https://github.com/traefik/enterprise/releases/tag/v2.12.11\r\n\r\nSession and state cookies, KV sessions and cached tokens written before the upgrade cannot be decoded by the patched versions: users log in once more and the middleware fetches one fresh token. No configuration change is required.\r\n\r\n## For more information\r\n\r\nIf you have any questions or comments about this advisory, please [open a Zendesk ticket](https://traefik.zendesk.com).","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","source":"GHSA-qcr9-wmgw-2q4c"}],"affected":[{"ecosystem":"GitHub","package":"traefik/enterprise/Traefik Enterprise","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.2.0"},{"fixed":"2.12.11"}]}],"fixed":["2.12.11"],"provider":"github-repo-advisories","source":"GHSA-qcr9-wmgw-2q4c","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/traefik/enterprise/security/advisories/GHSA-qcr9-wmgw-2q4c"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/traefik/enterprise/security/advisories/GHSA-qcr9-wmgw-2q4c"}],"sources":[{"provider":"github-repo-advisories","source_id":"GHSA-qcr9-wmgw-2q4c","url":"https://github.com/traefik/enterprise/security/advisories/GHSA-qcr9-wmgw-2q4c","license":"GitHub Terms of Service","modified_at":"2026-10-08T13:11:13Z","relation":"self"}]}
