# Istio: Sidecar TPROXY mode: mTLS/AuthorizationPolicy bypass via stale conntrack entry

In Istio TPROXY mode, a new connection reusing a recently closed 4-tuple matches a stale conntrack ESTABLISHED entry and reaches the app directly, bypassing Envoy mTLS and AuthorizationPolicy.

- Payout: Research
- Severity: high
- Program: Istio
- Found by: ramaraochavali, Pawan-Bishnoi
- Disclosed: 2026-12-04
- CVE: CVE-2026-145240
- Write-up quality: 8/10
- Original: https://github.com/advisories/GHSA-cxwg-46mx-q8hf
- Library page: https://bugbountylibrary.com/r/ghsa%3AGHSA-cxwg-46mx-q8hf
- Tags: area:devices domain:cloud domain:network impact:internal-access kind:research platform:ghsa sev:high tech:kubernetes tech:linux technique:race-window technique:source-review vuln:access-control vuln:auth-bypass

**Target:** Istio sidecar inbound iptables TPROXY interception (ISTIO_INBOUND chain, Envoy port 15006)
**Root cause:** The ISTIO_INBOUND chain accepts RELATED,ESTABLISHED packets via ISTIO_DIVERT without redirecting to Envoy. Conntrack retains ESTABLISHED state for closed connections for nf_conntrack_tcp_timeout_close (10s), so a new SYN reusing the same 4-tuple matches the stale entry and skips Envoy entirely.
**Steps:**
1. Deploy sidecar with TPROXY inbound interception, mesh-wide PeerAuthentication STRICT, app listening behind sidecar (e.g. Redis).
2. From client, connect to app port and send non-TLS data; Envoy resets (RST), leaving conntrack entry in CLOSE state for up to 10s. Verify with `conntrack -L | grep <client_ip>:<port>`.
3. Before expiry, open new connection from same source IP and port to same destination, binding client socket to same local port (`SO_REUSEADDR`/`SO_REUSEPORT`).
4. New SYN matches stale ESTABLISHED entry, hits `ISTIO_DIVERT` rule, goes straight to app, skipping Envoy on 15006.
5. Send plaintext over new connection; app accepts it, tcpdump shows unencrypted bytes, Envoy access log has no entry.
**How found:** Reporter reasoned about the ISTIO_INBOUND conntrack ESTABLISHED fast-path rule combined with nf_conntrack_tcp_timeout_close persistence for closed connections, hypothesizing that 4-tuple reuse within the window would skip Envoy; confirmed with a deterministic PoC binding the client socket to the same local port.
**Exploitation:** Attacker (or a client with a small fixed connection pool / reconnect storm) forces reuse of the same source IP:port within the 10s conntrack close timeout, then sends plaintext to the workload. Traffic bypasses Envoy, so mTLS STRICT and AuthorizationPolicy are never evaluated, allowing requests that should be denied to reach the app.
**Insight:** When auditing service-mesh interception, check iptables rules that accept ESTABLISHED/RELATED before redirecting to the proxy: conntrack state outlives the TCP connection, so any 4-tuple reuse (SO_REUSEPORT, connection pools, reconnect storms) can bypass the proxy and its policy enforcement. Test by forcing source-port reuse within nf_conntrack_tcp_timeout_close.

## Proof of concept (copied exactly from the original report)

**conntrack check for stale CLOSE entry**

```
conntrack -L | grep <client_ip>:<port>
```

