Istio mis‑parses SAN entries allowing workload identity spoofing
Istio’s SAN extraction logic ignores ASN.1 class bits, causing specially crafted certificates to present unauthorized identities. Attackers can impersonate any service account that can read secrets, undermining mutual TLS trust.
The ExtractIDsFromSAN function matches only the tag number of a URI SAN, disregarding the ASN.1 class and constructed flag, so non‑URI entries with tag 6 are treated as valid identities.
- A malicious certificate can embed a crafted application‑class or constructed tag that resolves to an arbitrary namespace/service‑account.
- The extra identity is invisible to the TLS layer, which only sees the legitimate URI, so verification passes.
- Istiod’s client‑certificate authenticator then authorizes actions based on the spoofed identity, enabling secret enumeration.
- Fixes are shipped in 1.30.9, 1.31.5, and 1.32.1.
Engineering Takeaway: Parse SAN fields with full ASN.1 context checks or reject unknown classes to preserve identity integrity.





