{"id":"CVE-2026-145366","aliases":["EUVD-2026-144847","GHSA-jjv7-h974-mjch"],"status":"published","title":"Istio: Workload identity impersonation via a mis-encoded SAN when using an external certificate signer","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, ExtractIDsFromSAN in security/pkg/pki/util/san.go matched GeneralName tag number 6 without checking the ASN.1 class or constructed bit and treated unmapped tags as DNS identities. With an external signer that authorizes the legitimate URI but copies the entire SAN into the leaf certificate, an application-class 0x46, constructed 0xa6, or spiffe:// value in a dNSName or rfc822Name slot can add an identity that the signer and TLS layer do not see but the istiod client-certificate authenticator consumes. Ztunnel specifically decodes constructed 0xa6 as a second URI identity. The forged identity can cross namespaces and expose protected TLS private keys, including a reachable mesh signing key; the built-in Istio CA and plugged-in cacerts are not affected. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","severity":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","level":"high","assessor":"cna","from":"cve"},"buzz":{"score":0.33,"authors":2},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-436","CWE-863"],"published":"2026-12-04T21:22:59Z","modified":"2026-12-04T23:01:15Z","fixes":[{"ecosystem":"Go","package":"istio.io/istio","fixed_in":["0.0.0-20261202212950-4c5fb90c6cb8"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"istio.io/istio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.0-20260112152740-3af7534ca9a9"},{"fixed":"0.0.0-20261202212950-4c5fb90c6cb8"}]}]}],"products":[{"vendor":"istio","product":"istio"}],"references":[{"url":"https://github.com/istio/istio/security/advisories/GHSA-jjv7-h974-mjch","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/istio/istio/commit/6e4ddf6a3be305a4962b044d44ed496ac9c8f6c5","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/commit/6f9191f841d3a4c5514590db09c3eab33cddf4d5","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/commit/bb2b5b93fe0eb525c307b4f62fa98a01bc4dfd39","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/releases/tag/1.30.9","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/istio/istio/releases/tag/1.31.5","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/istio/istio/releases/tag/1.32.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/advisories/GHSA-jjv7-h974-mjch"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145366.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-145366","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-145366","title":"Istio: Workload identity impersonation via a mis-encoded SAN when using an external certificate signer","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, ExtractIDsFromSAN in security/pkg/pki/util/san.go matched GeneralName tag number 6 without checking the ASN.1 class or constructed bit and treated unmapped tags as DNS identities. With an external signer that authorizes the legitimate URI but copies the entire SAN into the leaf certificate, an application-class 0x46, constructed 0xa6, or spiffe:// value in a dNSName or rfc822Name slot can add an identity that the signer and TLS layer do not see but the istiod client-certificate authenticator consumes. Ztunnel specifically decodes constructed 0xa6 as a second URI identity. The forged identity can cross namespaces and expose protected TLS private keys, including a reachable mesh signing key; the built-in Istio CA and plugged-in cacerts are not affected. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T21:22:59.25Z","modified":"2026-12-04T21:22:59.25Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-436","CWE-863"],"updated_at":"2026-12-04T21:34:55.540382Z"}],"euvd":[{"id":"EUVD-2026-144847","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, ExtractIDsFromSAN in security/pkg/pki/util/san.go matched GeneralName tag number 6 without checking the ASN.1 class or constructed bit and treated unmapped tags as DNS identities. With an external signer that authorizes the legitimate URI but copies the entire SAN into the leaf certificate, an application-class 0x46, constructed 0xa6, or spiffe:// value in a dNSName or rfc822Name slot can add an identity that the signer and TLS layer do not see but the istiod client-certificate authenticator consumes. Ztunnel specifically decodes constructed 0xa6 as a second URI identity. The forged identity can cross namespaces and expose protected TLS private keys, including a reachable mesh signing key; the built-in Istio CA and plugged-in cacerts are not affected. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T21:22:59Z","modified":"2026-12-04T21:22:59Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-12-04T22:42:52.420618Z"}],"ghsa":[{"id":"GHSA-jjv7-h974-mjch","title":"Istio: Workload identity impersonation via a mis-encoded SAN when using an external certificate signer","description":"### Summary\n\nA 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.\n\nThe 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.\n\nFixes are available in 1.30.9, 1.31.5 and 1.32.1.\n\n### Details\n\nA 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. ztunnel's `x509-parser` decodes `0xa6` as a second valid URI in `identities()` ([certificate.rs](https://github.com/istio/ztunnel/blob/release-1.32/src/tls/certificate.rs)).\n\nThe signer authorizes only the real identity, the issuer copies the whole SAN into the leaf, and istiod (CA gRPC and XDS mTLS authenticator) and ztunnel (HBONE peer identity) then act 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.\n\nFixes are available in 1.30.9, 1.31.5 and 1.32.1 (istiod and ztunnel).\n\n### Workarounds\n\nUse the built-in Istio CA or plugged-in `cacerts`, or an external signer that issues only the exact authorized URI SAN and rejects any extra or mis-encoded entry. For cert-manager `istio-csr` see GHSA-4j63-6mgw-6w6j.\n\n\n### Proof of concept\n\nOn a cluster using cert-manager `istio-csr` with the CA Issuer:\n\n1. From a pod with its `istio-ca`-audience token, build a CSR whose SAN holds two entries: its real `spiffe://\u003ctd\u003e/ns/\u003cns\u003e/sa/\u003csa\u003e` as a normal URI (`0x86`), and `spiffe://\u003ctd\u003e/ns/istio-system/sa/istiod` encoded with a mis-matched tag (`0x46` or `0xa6`).\n2. Submit the CSR to `istio-csr`. It authorizes only the real identity and issues a certificate keeping both entries. Re-encoding the second entry as a normal `0x86` URI yields `Unauthenticated`.\n3. Present the leaf to istiod and fetch the target secret over SDS.\n\nReproduced on istiod 1.31.3, `istio-csr` 0.19.1 and cert-manager 1.21.3.\n\n### Impact\n\nA workload retrieves a protected TLS private key across a namespace boundary. Where the mesh signing key is reachable through SDS for an impersonated account (the documented namespaced CA Issuer layout), the attacker recovers the active CA key and can mint trusted identities mesh-wide.\n\nReported by Dave Aitel, OpenAI Security Research.","status":"published","published":"2026-12-04T23:01:14Z","modified":"2026-12-04T23:01:15Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-436","CWE-863"],"updated_at":"2026-12-04T23:30:02.006757Z"}],"nvd":[{"id":"CVE-2026-145366","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, ExtractIDsFromSAN in security/pkg/pki/util/san.go matched GeneralName tag number 6 without checking the ASN.1 class or constructed bit and treated unmapped tags as DNS identities. With an external signer that authorizes the legitimate URI but copies the entire SAN into the leaf certificate, an application-class 0x46, constructed 0xa6, or spiffe:// value in a dNSName or rfc822Name slot can add an identity that the signer and TLS layer do not see but the istiod client-certificate authenticator consumes. Ztunnel specifically decodes constructed 0xa6 as a second URI identity. The forged identity can cross namespaces and expose protected TLS private keys, including a reachable mesh signing key; the built-in Istio CA and plugged-in cacerts are not affected. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T22:18:18.193Z","modified":"2026-12-04T22:18:18.193Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-436","CWE-863"],"updated_at":"2026-12-04T22:19:01.32028Z"}],"osv":[{"id":"CVE-2026-145366","title":"Istio: Workload identity impersonation via a mis-encoded SAN when using an external certificate signer","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, ExtractIDsFromSAN in security/pkg/pki/util/san.go matched GeneralName tag number 6 without checking the ASN.1 class or constructed bit and treated unmapped tags as DNS identities. With an external signer that authorizes the legitimate URI but copies the entire SAN into the leaf certificate, an application-class 0x46, constructed 0xa6, or spiffe:// value in a dNSName or rfc822Name slot can add an identity that the signer and TLS layer do not see but the istiod client-certificate authenticator consumes. Ztunnel specifically decodes constructed 0xa6 as a second URI identity. The forged identity can cross namespaces and expose protected TLS private keys, including a reachable mesh signing key; the built-in Istio CA and plugged-in cacerts are not affected. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T21:22:59.25Z","modified":"2026-12-04T23:00:40.907281264Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-436","CWE-863"],"updated_at":"2026-12-04T23:33:23.04011Z"}]}}
