Home/Research/Post

GHSA-jjv7-h974-mjch: Istio: Workload identity impersonation via a mis-encoded SAN when using an external certificate signer

  • Severity: HIGH
  • CVE: CVE-2026-145366
  • Ecosystems: go
  • Packages: istio.io/istio

### Summary

A URI SAN is a context-specific, primitive GeneralName with tag number 6 (identifier octet `0x86`). `ExtractIDsFromSAN` ([san.go](https://github.com/istio/istio/blob/1.32.0/security/pkg/pki/util/san.go#L149-L194)) matched on the tag number alone, ignoring the ASN.1 class and the constructed bit, and an unmapped tag fell through to a DNS identity. So an entry in another class with tag 6 (application-class `0x46`), a constructed `0xa6`, or a `spiffe://` value carried in a dNSName/rfc822Name slot was returned as an identity. Go `crypto/x509` and the TLS layer surface only the single legitimate URI, so TLS verification and the signer’s own authorization check never see the extra entry.

The signer authorizes only the real identity, the issuer copies the whole SAN into the leaf, and istiod’s client-certificate authenticator (CA gRPC server and XDS mTLS) then acts on the extra one. The impersonated identity can be any namespace/service account that passes the Kubernetes SubjectAccessReview for listing secrets in that namespace, not only istiod’s. The built-in Istio CA and plugged-in `cacerts` are not affected, since istiod builds the SAN from the authenticated caller.

Fixes are available in 1.30.9, 1.31.5 and 1.32.1.

### Details

A URI SAN is a context-specific, primitive GeneralName with tag number 6 (identifier octet `0x86`). `ExtractIDsFromSAN` ([san.go](https://github.com/istio/istio/blob/1.32.0/security/pkg/pki/util/san.go#L149-L194)) matched on the tag number a…

Source: GitHub Security Advisories · 2026-12-04