Go · istio.io/istio
Istio: AuthorizationPolicy method rules are bypassed over HTTP/2 by changing the method case
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.
Fixes are available in 1.29.9, 1.30.6 and 1.31.2.
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.
Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.
Check my repoSources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.