Skip to main content
Menu
Advisories

AuthorizationPolicy method rules are bypassed over HTTP/2 by changing the method case

GHSA-W44G-8M76-8GC5Published Updated GitHub

Description

Impact

An AuthorizationPolicy DENY rule with methods (or an ALLOW rule with notMethods) is compiled to a case-sensitive :method matcher. Over HTTP/2 a request whose method differs only in case (e.g. post instead of POST) does not match the rule and is forwarded to the workload, bypassing the authorization policy. HTTP/1.1 is not affected because the codec rejects non-uppercase methods before authorization.

Patches

Fixes are available in 1.29.9, 1.30.6 and 1.31.2

Workarounds

Use ALLOW policies with an explicit methods allow-list instead of DENY / notMethods rules; a case-mismatched method does not match the allow-list and is denied.

References

Same class as CVE-2021-39155 (case-sensitive host matching).

Affected versions

References

GitHub · istio/istio