{"id":"CVE-2026-145370","aliases":["EUVD-2026-144859","GHSA-7vw6-2xxx-fch6"],"status":"published","title":"Istio: Control-plane DoS via unbounded JWKS fetch in `RequestAuthentication`","description":"Istio is an open platform to connect, manage, and secure microservices. Prior to 1.30.9, 1.31.5, and 1.32.1, getRemoteContentWithRetry in pilot/pkg/model/jwks_resolver.go used unbounded io.ReadAll before HTTP status or JWKS validation for remote JWKS and OpenID discovery responses. A principal able to create or update RequestAuthentication can point jwksUri or issuer at an arbitrarily large response, exhaust istiod memory, and cause recurring OOMKilled restarts because the background refresher re-fetches the endpoint. The default PILOT_JWT_ENABLE_REMOTE_JWKS=false configuration is affected. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","severity":{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-770"],"published":"2026-12-04T21:49:51Z","modified":"2026-12-04T23:00:31Z","fixes":[{"ecosystem":"Go","package":"istio.io/istio","fixed_in":["0.0.0-20261202224451-323fcd3afbb9"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"istio.io/istio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.0-20260112152740-3af7534ca9a9"},{"fixed":"0.0.0-20261202224451-323fcd3afbb9"}]}]}],"products":[{"vendor":"istio","product":"istio"}],"references":[{"url":"https://github.com/istio/istio/security/advisories/GHSA-7vw6-2xxx-fch6","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/istio/istio/commit/3a80c2e020ce5ba8c096423e78a4e59ed5b20101","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/commit/8abc60d84f03f4d0087dca74b9835a2c25bac747","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/commit/c1bbe7a88404e66a3761a735815515bac6588704","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/releases/tag/1.30.9","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/istio/istio/releases/tag/1.31.5","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/istio/istio/releases/tag/1.32.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/advisories/GHSA-7vw6-2xxx-fch6"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145370.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-145370","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-145370","title":"Istio: Control-plane DoS via unbounded JWKS fetch in `RequestAuthentication`","description":"Istio is an open platform to connect, manage, and secure microservices. Prior to 1.30.9, 1.31.5, and 1.32.1, getRemoteContentWithRetry in pilot/pkg/model/jwks_resolver.go used unbounded io.ReadAll before HTTP status or JWKS validation for remote JWKS and OpenID discovery responses. A principal able to create or update RequestAuthentication can point jwksUri or issuer at an arbitrarily large response, exhaust istiod memory, and cause recurring OOMKilled restarts because the background refresher re-fetches the endpoint. The default PILOT_JWT_ENABLE_REMOTE_JWKS=false configuration is affected. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T21:49:51.61Z","modified":"2026-12-04T21:49:51.61Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-770"],"updated_at":"2026-12-04T21:53:21.526322Z"}],"euvd":[{"id":"EUVD-2026-144859","description":"Istio is an open platform to connect, manage, and secure microservices. Prior to 1.30.9, 1.31.5, and 1.32.1, getRemoteContentWithRetry in pilot/pkg/model/jwks_resolver.go used unbounded io.ReadAll before HTTP status or JWKS validation for remote JWKS and OpenID discovery responses. A principal able to create or update RequestAuthentication can point jwksUri or issuer at an arbitrarily large response, exhaust istiod memory, and cause recurring OOMKilled restarts because the background refresher re-fetches the endpoint. The default PILOT_JWT_ENABLE_REMOTE_JWKS=false configuration is affected. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T21:49:51Z","modified":"2026-12-04T21:49:51Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-12-04T23:43:11.593246Z"}],"ghsa":[{"id":"GHSA-7vw6-2xxx-fch6","title":"Istio: Control-plane DoS via unbounded JWKS fetch in `RequestAuthentication`","description":"### Summary\n\nistiod's JWKS resolver reads remote JWKS and OpenID discovery HTTP responses with no size limit. A principal able to create or update a `RequestAuthentication` can point `jwksUri` (or `issuer`, for OpenID discovery) at an endpoint that returns an arbitrarily large response, causing istiod to buffer the entire body in memory and be `OOMKilled`. Because this runs in istiod's default JWKS fetch mode and the background refresher re-fetches the malicious endpoint after every restart, istiod enters a crash loop and stops distributing configuration to the whole mesh.\n\n### Details\n\nIn `pilot/pkg/model/jwks_resolver.go`, `getRemoteContentWithRetry` reads the HTTP response body using an unbounded `io.ReadAll(resp.Body)`. Both the HTTP status check and `validateJWKSFormat` run only *after* the full body is read, meaning non-2xx and non-JWKS responses are completely buffered before rejection. Because `io.ReadAll` grows its buffer by doubling, peak heap usage reaches roughly twice the response size.\n\nThis method serves all three JWKS fetch paths:\n- `GetPublicKey` (called from `BuildLocalJwks`)\n- `resolveJwksURIUsingOpenID` (OpenID discovery)\n- `refresh` (background refresher)\n\nThe **default configuration is affected**. `PILOT_JWT_ENABLE_REMOTE_JWKS` defaults to `false`, which enables `istiod`-side fetching.\n\nBecause `istiod` is a shared control plane, a namespace-scoped actor who can create a single `RequestAuthentication`—or an attacker who compromises a legitimate JWKS/IdP endpoint already referenced by one—can exhaust `istiod` memory for the entire mesh. `istiod` does not self-heal: on restart, the background refresher re-fetches the same `jwksUri`, causing repeated `OOMKilled` events and a `CrashLoopBackOff` that disrupts configuration distribution to all proxies.\n\n**Note:** This is distinct from the earlier `jwksUri` SSRF issue (GHSA-fgw5-hp8f-xfhc / CVE-2026-41413), which concerned *where* `istiod` connects rather than the volume of bytes read.\n\nFixes are available in 1.30.9, 1.31.5, and 1.32.1.\n\n### Workaround\n\nUpgrading to a patched version is recommended, as no pre-fix configuration disables the unbounded read. The following partial mitigations reduce exposure with trade-offs:\n\n- **Restrict RBAC:** Limit `RequestAuthentication` (`security.istio.io/v1`) creation and updates to trusted operators.\n- *Trade-off:* Removes self-service for namespace tenants and does not protect against a compromised legitimate JWKS/IdP endpoint.\n- **Shift fetching to Envoy:** Set `PILOT_JWT_ENABLE_REMOTE_JWKS=envoy` to move JWKS fetching from `istiod` to the data plane.\n- *Trade-off:* Mesh-wide behavior change requiring every proxy to have network egress to JWKS endpoints. Note that `hybrid`/`true` modes do **not** mitigate this, as they fall back to `istiod` for external servers.\n\nSetting a memory limit on `istiod` does not mitigate the issue; an oversized response will still exceed the limit and trigger a crash loop.\n\n### Proof of concept\n\nIn a cluster running `istiod` with a `512Mi` memory limit and the default JWKS fetch mode, create a `RequestAuthentication` pointing `jwksUri` to an endpoint that streams ~1.5 GiB (any status code or content type works):\n\n```yaml\napiVersion: security.istio.io/v1\nkind: RequestAuthentication\nmetadata:\n  name: oom\n  namespace: tenant-a\nspec:\n  jwtRules:\n    - issuer: \"[https://attacker.example](https://attacker.example)\"\n      jwksUri: \"[http://oversized-jwks.tenant-a.svc.cluster.local/jwks](http://oversized-jwks.tenant-a.svc.cluster.local/jwks)\" # streams ~1.5 GiB\n```\n\n- **Observed:** `istiod` memory climbs to roughly twice the response size, the pod is `OOMKilled` (exit code 137), and it enters `CrashLoopBackOff` as the background refresher re-fetches the URI on each restart. Mesh configuration distribution is disrupted.\n- **Expected (patched):** Responses exceeding `PILOT_JWKS_RESOLVER_MAX_RESPONSE_BYTES` (default `1 MiB`) are rejected without being fully buffered, keeping `istiod` memory bounded.\n\n### Impact\n\nThis is a denial-of-service (DoS) vulnerability affecting the availability of the `istiod` control plane in its default configuration. An actor with namespace-scoped RBAC to create/update `RequestAuthentication` (or control over a referenced JWKS/IdP endpoint) can force `istiod` into a crash loop, halting configuration distribution across the entire mesh. No user interaction is required. Confidentiality and integrity are not directly impacted.","status":"published","published":"2026-12-04T22:52:55Z","modified":"2026-12-04T22:53:19Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-770"],"updated_at":"2026-12-04T22:59:48.349285Z"}],"nvd":[{"id":"CVE-2026-145370","description":"Istio is an open platform to connect, manage, and secure microservices. Prior to 1.30.9, 1.31.5, and 1.32.1, getRemoteContentWithRetry in pilot/pkg/model/jwks_resolver.go used unbounded io.ReadAll before HTTP status or JWKS validation for remote JWKS and OpenID discovery responses. A principal able to create or update RequestAuthentication can point jwksUri or issuer at an arbitrarily large response, exhaust istiod memory, and cause recurring OOMKilled restarts because the background refresher re-fetches the endpoint. The default PILOT_JWT_ENABLE_REMOTE_JWKS=false configuration is affected. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T22:18:18.927Z","modified":"2026-12-04T22:18:18.927Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-770"],"updated_at":"2026-12-04T22:19:01.32028Z"}],"osv":[{"id":"CVE-2026-145370","title":"Istio: Control-plane DoS via unbounded JWKS fetch in `RequestAuthentication`","description":"Istio is an open platform to connect, manage, and secure microservices. Prior to 1.30.9, 1.31.5, and 1.32.1, getRemoteContentWithRetry in pilot/pkg/model/jwks_resolver.go used unbounded io.ReadAll before HTTP status or JWKS validation for remote JWKS and OpenID discovery responses. A principal able to create or update RequestAuthentication can point jwksUri or issuer at an arbitrarily large response, exhaust istiod memory, and cause recurring OOMKilled restarts because the background refresher re-fetches the endpoint. The default PILOT_JWT_ENABLE_REMOTE_JWKS=false configuration is affected. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T21:49:51.61Z","modified":"2026-12-04T23:00:31.437547843Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-770"],"updated_at":"2026-12-04T23:33:23.04011Z"}]}}
