CVE-2026-145370: CVE-2026-145370: Control-Plane Denial of Service via Unbounded JWKS Fetch in Istio
CVE-2026-145370: Control-Plane Denial of Service via Unbounded JWKS Fetch in Istio Vulnerability ID: CVE-2026-145370 CVSS Score: 7.7 Published: 2026-12-04 CVE-2026-145370 (GHSA-7vw6-2xxx-fch6) is a resource allocati
CVE-2026-145370: Control-Plane Denial of Service via Unbounded JWKS Fetch in Istio
Vulnerability ID: CVE-2026-145370
CVSS Score: 7.7
Published: 2026-12-04
CVE-2026-145370 (GHSA-7vw6-2xxx-fch6) is a resource allocation vulnerability in the Istio control plane (istiod). Prior to versions 1.30.9, 1.31.5, and 1.32.1, the JWKS resolver routine getRemoteContentWithRetry used an unbounded io.ReadAll call to retrieve remote JWKS and OpenID discovery documents. An authenticated Kubernetes user with permissions to create or modify a RequestAuthentication custom resource can specify an endpoint that returns an arbitrarily large or infinite stream, exhausting control-plane memory and placing istiod into a persistent CrashLoopBackOff state.
TL;DR
An unbounded io.ReadAll call in Istio's JWKS resolver (pilot/pkg/model/jwks_resolver.go) allows low-privileged Kubernetes users who can create or update RequestAuthentication resources to crash the istiod control plane via out-of-memory exhaustion. Fixed in Istio 1.30.9, 1.31.5, and 1.32.1.
Technical Details
- CVE ID: CVE-2026-145370 (GHSA-7vw6-2xxx-fch6)
- CWE Classification: CWE-770: Allocation of Resources Without Limits or Throttling
- CVSS v3.1 Score: 7.7 HIGH (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H)
- Affected Component: istiod / Pilot (pilot/pkg/model/jwks_resolver.go)
- Attack Vector: Network via RequestAuthentication Custom Resource
- Primary Impact: Control-Plane OOMKilled & Persistent CrashLoopBackOff
- Patched Versions: Istio 1.30.9, 1.31.5, 1.32.1
- CISA KEV Status: Not Listed
Affected Systems
- Istio Control Plane (istiod / Pilot)
-
Istio: >= 1.30.0, < 1.30.9 (Fixed in:
1.30.9) -
Istio: >= 1.31.0, < 1.31.5 (Fixed in:
1.31.5) -
Istio: >= 1.32.0, < 1.32.1 (Fixed in:
1.32.1)
Code Analysis
Commit: 3a80c2e
Bound JWKS and OpenID discovery HTTP response reads in JwksResolver (release-1.30)
--- a/pilot/pkg/features/pilot.go
+++ b/pilot/pkg/features/pilot.go
@@ -284,6 +284,13 @@ var (
JwksResolverInsecureSkipVerify = env.Register("JWKS_RESOLVER_INSECURE_SKIP_VERIFY", false,
"If enabled, istiod will skip verifying the certificate of the JWKS server.").Get()
+ JwksResolverMaxResponseBytes = env.Register[int64]("PILOT_JWKS_RESOLVER_MAX_RESPONSE_BYTES",
+ 1024*1024,
+ "Maximum size in bytes of a JWKS or OpenID discovery HTTP response that istiod will read into "+
+ "memory. Responses larger than this are rejected. Real JWKS documents are only a few KB; this "+
+ "bound prevents a malicious or compromised JWKS endpoint (referenced by a RequestAuthentication) "+
+ "from exhausting control-plane memory.").Get()
+
EnableSelectorBasedK8sGatewayPolicy = env.Register("ENABLE_SELECTOR_BASED_K8S_GATEWAY_POLICY", true,
"If disabled, Gateway API gateways will ignore workloadSelector policies, only"+
"applying policies that select the gateway with a targetRef.").Get()
--- a/pilot/pkg/model/jwks_resolver.go
+++ b/pilot/pkg/model/jwks_resolver.go
@@ -401,13 +401,22 @@ func (r *JwksResolver) getRemoteContentWithRetry(uri string, retry int, timeout
}
defer resp.Body.Close()
- body, err := io.ReadAll(resp.Body)
+ // Bound the response body.Read at most maxBytes+1 so an oversized response can be detected and rejected.
+ // This covers the main fetch (GetPublicKey), OpenID discovery, and the background refresh,
+ // since all of them go through this method.
+ maxBytes := features.JwksResolverMaxResponseBytes
+ body, err := io.ReadAll(io.LimitReader(resp.Body, maxBytes+1))
if err != nil {
return nil, err
}
+ oversized := int64(len(body)) > maxBytes
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
- message := strconv.Quote(string(body))
+ snippet := body
+ if len(snippet) > 512 {
+ snippet = snippet[:512]
+ }
+ message := strconv.Quote(string(snippet))
if len(message) > 100 {
message = message[:100]
return nil, fmt.Errorf("status %d, message %s(truncated)", resp.StatusCode, message)
@@ -415,6 +424,10 @@ func (r *JwksResolver) getRemoteContentWithRetry(uri string, retry int, timeout
return nil, fmt.Errorf("status %d, message %s", resp.StatusCode, message)
}
+ if oversized {
+ return nil, fmt.Errorf("response from %q exceeds the maximum allowed size of %d bytes", uri, maxBytes)
+ }
+
return body, nil
}
Commit: 8abc60d
Bound JWKS and OpenID discovery HTTP response reads in JwksResolver (release-1.31)
Commit: c1bbe7a
Bound JWKS and OpenID discovery HTTP response reads in JwksResolver (release-1.32)
Mitigation Strategies
- Upgrade Istio control plane deployments to patched versions (1.30.9, 1.31.5, or 1.32.1) that bound HTTP responses with io.LimitReader.
- Restrict Kubernetes RBAC permissions for creating or modifying RequestAuthentication resources to trusted cluster administrators.
- Enforce Kubernetes admission control policies (Kyverno, OPA Gatekeeper, or ValidatingAdmissionPolicy) to restrict jwksUri and issuer fields to an allowlist of approved Identity Provider domains.
- Apply Kubernetes NetworkPolicies on the istio-system namespace to restrict outbound HTTP/HTTPS egress from istiod pods.
Remediation Steps:
- Identify any existing suspicious RequestAuthentication resources across all namespaces using: kubectl get requestauthentications -A -o yaml
- If istiod is currently in CrashLoopBackOff due to an exploit, delete the offending RequestAuthentication resource via kubectl delete requestauthentication -n
- Upgrade istiod to version 1.30.9, 1.31.5, or 1.32.1 using istioctl upgrade or Helm.
- Optionally configure PILOT_JWKS_RESOLVER_MAX_RESPONSE_BYTES in the istiod deployment environment if custom response size thresholds are required.
References
- GitHub Security Advisory: GHSA-7vw6-2xxx-fch6
- CVE.org Record: CVE-2026-145370
- NVD Vulnerability Detail: CVE-2026-145370
- Istio Fix Commit (release-1.30)
- Istio Fix Commit (release-1.31)
- Istio Fix Commit (release-1.32)
- CVEListV5 JSON Record: CVE-2026-145370
Read the full report for CVE-2026-145370 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.