Istio: AuthorizationPolicy ipBlocks, notIpBlocks and source.ip not enforced on waypoints and sidecar HBONE inboundGHSA-9gqj-583v-mpqp
MEDIUMFix: istio/istio#62558GHSA-9gqj-583v-mpqp is a medium-severity (CVSS 5.6) CWE-863 vulnerability in istio.io/istio. A fix is available for istio.io/istio — see the affected versions and patch details below.
Real-World Exposure
istio.io/istioReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Summary
AuthorizationPolicy source.ipBlocks, source.notIpBlocks and the source.ip condition on ambient waypoints, and on sidecars receiving HBONE traffic, match the Envoy internal listener address, not the client IP. DENY rules on ipBlocks fail open, notIpBlocks rules match every request. CUSTOM rules on ipBlocks skip the external authorizer.
Details
ipBlocks, notIpBlocks and source.ip are translated to the RBAC direct_remote_ip principal (generator.go). Waypoints, and sidecars for HBONE inbound traffic, enforce policy on the main_internal internal listener, where the direct remote address is always envoy://internal. The original_dst listener filter only restores the remote address, so remoteIpBlocks/notRemoteIpBlocks and remote.ip (remote_ip) work but ipBlocks/notIpBlocks/source.ip never see the client IP. This applies to ALLOW, DENY and CUSTOM actions. HTTP and TCP traffic are both affected.
Fixes are available in 1.31.4 and 1.30.8.
Workaround: use remoteIpBlocks, notRemoteIpBlocks and remote.ip instead of ipBlocks, notIpBlocks and source.ip in policies that apply to waypoints or to sidecars receiving HBONE traffic.
Proof of concept
Ambient namespace with a client pod and a waypoint, then a DENY on the client pod IP:
apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata: {name: deny-test, namespace: amb}
spec:
targetRefs: [{kind: Gateway, group: gateway.networking.k8s.io, name: waypoint}]
action: DENY
rules: [{from: [{source: {ipBlocks: ["<client-pod-ip>/32"]}}]}]
Requests from the client through the waypoint are still allowed. Same policy with remoteIpBlocks denies them. notIpBlocks: ["<client-pod-ip>/32"] denies the client. Full steps in https://github.com/istio/istio/issues/62522.
Impact
Authorization bypass. Users relying on ipBlocks or source.ip in DENY, ALLOW or CUSTOM policies on waypoints, or on sidecars receiving HBONE traffic from ambient workloads, to restrict clients get no enforcement from those rules, and notIpBlocks rules can deny legitimate traffic. Gateways are not affected in any release. Sidecars are only affected for HBONE traffic.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | istio.io/istio | ≥ 0.0.0-20260112152740-3af7534ca9a9&&< 0.0.0-20261104183325-d9fa8b0cb2f6 | 0.0.0-20261104183325-d9fa8b0cb2f6go get istio.io/istio@v0.0.0-20261104183325-d9fa8b0cb2f6 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for istio.io/istio, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update istio.io/istio to 0.0.0-20261104183325-d9fa8b0cb2f6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-9gqj-583v-mpqp is resolved across your whole dependency graph.
Workarounds
Put an independent control in front of the weakness: restrict the affected endpoint or interface to trusted networks, require an additional authentication factor or proxy-level check, and invalidate existing sessions and credentials in case the flaw has already been used.
Frequently Asked Questions
Is GHSA-9gqj-583v-mpqp in your dependencies?
Find it across Go, including transitive dependencies.