{"id":"GHSA-rr42-h8r2-f28g","aliases":[],"summary":"Unbounded BasicAuth password length gives ~1857x CPU amplification through MD5-crypt, pre-authentication","published_at":"2026-11-12T10:01:25Z","modified_at":"2026-11-12T10:01:25Z","products":[{"slug":"traefik","name":"Traefik","category":"proxy"}],"rating":{"severity":"medium","score":6.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"priority":8.3,"record_count":1,"vendors":["GitHub"],"details":"## Summary\r\n\r\nThere is a potential vulnerability in Traefik's BasicAuth middleware. The middleware does not limit the length of the password before it hashes it, and the MD5-crypt hash formats (`$apr1$`, `$1$`) take more CPU time as the password gets longer. An unauthenticated attacker can send requests with passwords up to the entry point `maxHeaderBytes` limit (1 MiB by default) and use a large amount of CPU on each request, which degrades the availability of Traefik. The patched versions reject passwords longer than 1024 bytes.\r\n\r\n## Patches\r\n\r\n- https://github.com/traefik/traefik/releases/tag/v2.11.62\r\n- https://github.com/traefik/traefik/releases/tag/v3.7.18\r\n- https://github.com/traefik/traefik/releases/tag/v3.8.0-rc.2\r\n\r\n## For more information\r\n\r\nIf you have any questions or comments about this advisory, please [open an issue](https://github.com/traefik/traefik/issues).","affected_stack":[{"ecosystem":"Go","package":"github.com/traefik/traefik/v2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"v2.11.62"}]}],"fixed":["v2.11.62"],"provider":"github-repo-advisories","source":"GHSA-rr42-h8r2-f28g","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"v3.0.0"},{"fixed":"v3.7.18"}]}],"fixed":["v3.7.18"],"provider":"github-repo-advisories","source":"GHSA-rr42-h8r2-f28g","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"v3.8.0-rc.1"},{"fixed":"v3.8.0-rc.2"}]}],"fixed":["v3.8.0-rc.2"],"provider":"github-repo-advisories","source":"GHSA-rr42-h8r2-f28g","relation":"self"}],"affected_other":[],"product_status":[],"records":[{"provider":"github-repo-advisories","source_id":"GHSA-rr42-h8r2-f28g","relation":"self","url":"https://github.com/traefik/traefik/security/advisories/GHSA-rr42-h8r2-f28g","license":"GitHub Terms of Service","published_at":"2026-11-12T10:01:25Z","modified_at":"2026-11-12T10:01:25Z","summary":"Unbounded BasicAuth password length gives ~1857x CPU amplification through MD5-crypt, pre-authentication","details":"## Summary\r\n\r\nThere is a potential vulnerability in Traefik's BasicAuth middleware. The middleware does not limit the length of the password before it hashes it, and the MD5-crypt hash formats (`$apr1$`, `$1$`) take more CPU time as the password gets longer. An unauthenticated attacker can send requests with passwords up to the entry point `maxHeaderBytes` limit (1 MiB by default) and use a large amount of CPU on each request, which degrades the availability of Traefik. The patched versions reject passwords longer than 1024 bytes.\r\n\r\n## Patches\r\n\r\n- https://github.com/traefik/traefik/releases/tag/v2.11.62\r\n- https://github.com/traefik/traefik/releases/tag/v3.7.18\r\n- https://github.com/traefik/traefik/releases/tag/v3.8.0-rc.2\r\n\r\n## For more information\r\n\r\nIf you have any questions or comments about this advisory, please [open an issue](https://github.com/traefik/traefik/issues).","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","source":"GHSA-rr42-h8r2-f28g"}],"affected":[{"ecosystem":"Go","package":"github.com/traefik/traefik/v2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"v2.11.62"}]}],"fixed":["v2.11.62"],"provider":"github-repo-advisories","source":"GHSA-rr42-h8r2-f28g","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"v3.0.0"},{"fixed":"v3.7.18"}]}],"fixed":["v3.7.18"],"provider":"github-repo-advisories","source":"GHSA-rr42-h8r2-f28g","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"v3.8.0-rc.1"},{"fixed":"v3.8.0-rc.2"}]}],"fixed":["v3.8.0-rc.2"],"provider":"github-repo-advisories","source":"GHSA-rr42-h8r2-f28g","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/traefik/traefik/security/advisories/GHSA-rr42-h8r2-f28g"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/traefik/traefik/security/advisories/GHSA-rr42-h8r2-f28g"}],"sources":[{"provider":"github-repo-advisories","source_id":"GHSA-rr42-h8r2-f28g","url":"https://github.com/traefik/traefik/security/advisories/GHSA-rr42-h8r2-f28g","license":"GitHub Terms of Service","modified_at":"2026-11-12T10:01:25Z","relation":"self"}]}
