Istio: Ambient mode mTLS bypass via PeerAuthentication bugGHSA-rr2c-p22p-6r9r
HIGHFix: istio/istio@03a427bGHSA-rr2c-p22p-6r9r is a high-severity (CVSS 8.2) CWE-693 vulnerability in istio.io/istio. A fix is available for istio.io/istio — see the affected versions and patch details below.
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
Exploitation and automatability from CISA’s SSVC triage for GHSA-rr2c-p22p-6r9r.
Real-World Exposure
istio.io/istioReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
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
PeerAuthenticationmtls.modetoSTRICT, and useportLevelMtlswithPERMISSIVEonly for the ports that need plaintext. - Add a namespace-level
STRICTPeerAuthenticationin the affected namespace.
Proof of concept
- Ambient mode.
- The mesh-wide
PeerAuthenticationinistio-systemisSTRICT, and the namespace has noPeerAuthentication.
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:
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 converted_peer_authentication_workload-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).
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | istio.io/istio | ≥ 0.0.0-20260112152740-3af7534ca9a9&&< 0.0.0-20261106211527-30de921835cb | 0.0.0-20261106211527-30de921835cbgo get istio.io/istio@v0.0.0-20261106211527-30de921835cb |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for istio.io/istio, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update istio.io/istio to 0.0.0-20261106211527-30de921835cb or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-rr2c-p22p-6r9r is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-rr2c-p22p-6r9r in your dependencies?
Find it across Go, including transitive dependencies.