CVE-2026-145364: Istio: Ambient mode mTLS bypass via PeerAuthentication bug

Published Dec 4, 2026
·
Updated

Summary

A 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.

Details

A 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.

When 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.

As 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.

Fixes are available in 1.31.4 and 1.30.8.

Workarounds

Until you can upgrade, use one of these:

- Set the workload-level PeerAuthentication mtls.mode to STRICT, and use portLevelMtls with PERMISSIVE only for the ports that need plaintext. - Add a namespace-level STRICT PeerAuthentication in the affected namespace.

Proof of concept

Ambient mode. The mesh-wide PeerAuthentication in istio-system is STRICT, and the namespace has no PeerAuthentication.

yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: workload-port-strict spec: selector: matchLabels: app: workload mtls: mode: PERMISSIVE portLevelMtls: 8443: mode: STRICT

Send plaintext from a non-mesh client to port 8443:

bash curl -sv --max-time 5 http://workload:8443/

| Parent of STRICT | Result | |---|---| | Mesh-wide STRICT (bug) | HTTP 200, plaintext accepted | | Namespace-wide STRICT (control) | Connection reset, rejected |

In the bug case, ztunnel has no convertedpeerauthenticationworkload-port-strict policy, but the workload still references it by name.

Cause: in convertPeerAuthentication(), A || (B && C) || D should be A || (B && (C || D)). The mesh-level check (D) skips the port without the "workload-level unset" guard (B).

Other sources

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.

— MITRE

Affected Software

2 affected componentsFixes available
Istio Istio>=1.30.0<1.30.8, >=1.31.0<1.31.4
go/istio.io/istio>=0.0.0-20260112152740-3af7534ca9a9<0.0.0-20261106211527-30de921835cb
0.0.0-20261106211527-30de921835cb

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/istio.io/istio to a version that resolves this vulnerability.

    Fixed in 0.0.0-20261106211527-30de921835cb
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.30.8
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.31.4
  4. Configuration

    Add a namespace-level PeerAuthentication with mtls.mode set to STRICT in the affected namespace.

    Istio PeerAuthentication spec.mtls.mode = STRICT
  5. Configuration

    Set the workload-level PeerAuthentication mtls.mode to STRICT, and use portLevelMtls with PERMISSIVE only for ports that need plaintext.

    Istio PeerAuthentication spec.mtls.mode and spec.portLevelMtls = STRICT; PERMISSIVE only for ports that need plaintext

Event History

Dec 4, 2026
CVE Published
via MITRE·09:09 PM
Data Sourced
via MITRE·09:09 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·10:07 PM
Data Sourced
via GitHub·10:07 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via NVD·10:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which policy configurations need review?

Review ambient-mode workloads that have a workload-level PeerAuthentication set to PERMISSIVE or DISABLE with portLevelMtls: STRICT, where the namespace has no STRICT policy and the root-namespace mesh policy is STRICT. This combination can cause ztunnel to accept plaintext on the port intended to require mTLS.

2

How can I determine whether the issue is remediated?

Check the deployed Istio version and upgrade to 1.30.8 or 1.31.4, which contain the fix. Also inspect PeerAuthentication policies at the workload, namespace, and root-namespace scopes to identify the affected policy combination.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203