{"id":"CVE-2026-145364","aliases":["EUVD-2026-144833","GHSA-rr2c-p22p-6r9r"],"status":"published","title":"Istio: Ambient mode mTLS bypass via PeerAuthentication bug","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.8 and 1.31.4, an operator-precedence error in convertPeerAuthentication() in pilot/pkg/serviceregistry/ambient/authorization.go omitted the workload-policy-unset guard from the mesh-level STRICT check. When a workload-level PeerAuthentication is PERMISSIVE or DISABLE with portLevelMtls: STRICT, the namespace has no STRICT policy, and the root-namespace mesh policy is STRICT, the converter can leave a dangling policy reference and let ztunnel accept plaintext on the port configured for mTLS. This issue is fixed in versions 1.30.8 and 1.31.4.","severity":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high","assessor":"cna","from":"cve"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true,"poc_reported":true},"cwes":["CWE-693","CWE-783"],"published":"2026-12-04T21:09:49Z","modified":"2026-12-04T23:00:43Z","fixes":[{"ecosystem":"Go","package":"istio.io/istio","fixed_in":["0.0.0-20261106211527-30de921835cb"],"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-20261106211527-30de921835cb"}]}]}],"products":[{"vendor":"istio","product":"istio"}],"references":[{"url":"https://github.com/istio/istio/security/advisories/GHSA-rr2c-p22p-6r9r","tags":["x_refsource_CONFIRM","exploit","advisory"]},{"url":"https://github.com/istio/istio/commit/03a427bc69a4621d2e6006c0f18bc873a6d23d3a","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/commit/30de921835cb2e1ca5ae4538cccc7b4f2beeaa29","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/commit/33369baf78eb3219f712fe48e8074f90d51f0202","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/commit/7bc0eb20bc839d467968b426d73e42dd7addaba3","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/releases/tag/1.30.8","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/istio/istio/releases/tag/1.31.4","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/istio/istio/releases/tag/1.32.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/advisories/GHSA-rr2c-p22p-6r9r"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145364.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-145364","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-145364","title":"Istio: Ambient mode mTLS bypass via PeerAuthentication bug","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.8 and 1.31.4, an operator-precedence error in convertPeerAuthentication() in pilot/pkg/serviceregistry/ambient/authorization.go omitted the workload-policy-unset guard from the mesh-level STRICT check. When a workload-level PeerAuthentication is PERMISSIVE or DISABLE with portLevelMtls: STRICT, the namespace has no STRICT policy, and the root-namespace mesh policy is STRICT, the converter can leave a dangling policy reference and let ztunnel accept plaintext on the port configured for mTLS. This issue is fixed in versions 1.30.8 and 1.31.4.","status":"published","published":"2026-12-04T21:09:49.725Z","modified":"2026-12-04T21:42:02.309Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-693","CWE-783"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial","date":"2026-12-04"},"updated_at":"2026-12-04T21:47:14.574095Z"}],"euvd":[{"id":"EUVD-2026-144833","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.8 and 1.31.4, an operator-precedence error in convertPeerAuthentication() in pilot/pkg/serviceregistry/ambient/authorization.go omitted the workload-policy-unset guard from the mesh-level STRICT check. When a workload-level PeerAuthentication is PERMISSIVE or DISABLE with portLevelMtls: STRICT, the namespace has no STRICT policy, and the root-namespace mesh policy is STRICT, the converter can leave a dangling policy reference and let ztunnel accept plaintext on the port configured for mTLS. This issue is fixed in versions 1.30.8 and 1.31.4.","status":"published","published":"2026-12-04T21:09:49Z","modified":"2026-12-04T21:42:02Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high"}],"updated_at":"2026-12-04T22:42:52.420618Z"}],"ghsa":[{"id":"GHSA-rr2c-p22p-6r9r","title":"Istio: Ambient mode mTLS bypass via PeerAuthentication bug","description":"### Summary\n\nA boolean operator-precedence bug in `convertPeerAuthentication()` (`pilot/pkg/serviceregistry/ambient/authorization.go`) makes Istio ambient mode silently drop per-port STRICT mTLS enforcement. The mesh-level check is missing the \"workload-level policy is unset\" guard, so the port is wrongly treated as already covered by the mesh-wide STRICT policy.\n\n\n### Details\n\nA boolean operator-precedence error in `convertPeerAuthentication()`  ( `pilot/pkg/serviceregistry/ambient/authorization.go` ) causes Istio ambient mode to silently skip enforcement of a portLevelMtls  STRICT setting.\n\nWhen a workload-level `PeerAuthentication` has mode `PERMISSIVE` or `DISABLE`, it can also set `portLevelMtls` to `STRICT` on a specific port. If the namespace has no `STRICT` `PeerAuthentication` and the mesh-wide (root namespace) `PeerAuthentication` is `STRICT`, the port is wrongly treated as already enforced by the parent policy. The \"workload-level policy is unset\" guard applies only to the namespace-level check. The mesh-level check is evaluated without it.\n\nAs a result, the per-port `DENY` policy is not generated and not sent to ztunnel. The workload still references it by name, which leaves a dangling reference. ztunnel then accepts plaintext connections on a port the operator configured to require mTLS. Sidecar mode enforces `STRICT` correctly in the same configuration, so this is an ambient-only divergence. There is no error or warning.\n\nFixes are available in 1.31.4 and 1.30.8.\n\n### Workarounds\n\nUntil you can upgrade, use one of these:\n\n- Set the workload-level `PeerAuthentication` `mtls.mode` to `STRICT`, and use `portLevelMtls` with `PERMISSIVE` only for the ports that need plaintext.\n- Add a namespace-level `STRICT` `PeerAuthentication` in the affected namespace.\n\n### Proof of concept\n\n* Ambient mode. \n* The mesh-wide `PeerAuthentication` in `istio-system` is `STRICT`, and the namespace has no `PeerAuthentication`.\n\n```yaml\napiVersion: security.istio.io/v1\nkind: PeerAuthentication\nmetadata:\n  name: workload-port-strict\nspec:\n  selector:\n    matchLabels:\n      app: workload\n  mtls:\n    mode: PERMISSIVE\n  portLevelMtls:\n    8443:\n      mode: STRICT\n```\n\nSend plaintext from a non-mesh client to port 8443:\n\n```bash\ncurl -sv --max-time 5 http://workload:8443/\n```\n\n| Parent of STRICT | Result |\n|---|---|\n| Mesh-wide STRICT (bug) | HTTP 200, plaintext accepted |\n| Namespace-wide STRICT (control) | Connection reset, rejected |\n\nIn the bug case, ztunnel has no `converted_peer_authentication_workload-port-strict` policy, but the workload still references it by name.\n\n**Cause:** in `convertPeerAuthentication()`, `A || (B \u0026\u0026 C) || D` should be `A || (B \u0026\u0026 (C || D))`. The mesh-level check (D) skips the port without the \"workload-level unset\" guard (B).","status":"published","published":"2026-12-04T22:07:09Z","modified":"2026-12-04T22:07:10Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high"}],"cwes":["CWE-693","CWE-783"],"updated_at":"2026-12-04T22:29:34.61237Z"}],"nvd":[{"id":"CVE-2026-145364","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.8 and 1.31.4, an operator-precedence error in convertPeerAuthentication() in pilot/pkg/serviceregistry/ambient/authorization.go omitted the workload-policy-unset guard from the mesh-level STRICT check. When a workload-level PeerAuthentication is PERMISSIVE or DISABLE with portLevelMtls: STRICT, the namespace has no STRICT policy, and the root-namespace mesh policy is STRICT, the converter can leave a dangling policy reference and let ztunnel accept plaintext on the port configured for mTLS. This issue is fixed in versions 1.30.8 and 1.31.4.","status":"published","published":"2026-12-04T22:18:17.807Z","modified":"2026-12-04T22:18:17.807Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-693","CWE-783"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial","date":"2026-12-04"},"updated_at":"2026-12-04T22:19:01.32028Z"}],"osv":[{"id":"CVE-2026-145364","title":"Istio: Ambient mode mTLS bypass via PeerAuthentication bug","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.8 and 1.31.4, an operator-precedence error in convertPeerAuthentication() in pilot/pkg/serviceregistry/ambient/authorization.go omitted the workload-policy-unset guard from the mesh-level STRICT check. When a workload-level PeerAuthentication is PERMISSIVE or DISABLE with portLevelMtls: STRICT, the namespace has no STRICT policy, and the root-namespace mesh policy is STRICT, the converter can leave a dangling policy reference and let ztunnel accept plaintext on the port configured for mTLS. This issue is fixed in versions 1.30.8 and 1.31.4.","status":"published","published":"2026-12-04T21:09:49.725Z","modified":"2026-12-04T23:00:43.501733919Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high"}],"cwes":["CWE-693","CWE-783"],"updated_at":"2026-12-04T23:33:23.04011Z"}]}}
