NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐹
🐹 Go
Not in CISA KEV
HIGH severity

CVE-2026-145366 — istio

HIGHFix: istio/istio@6e4ddf6

CVE-2026-145366 is a high-severity (CVSS 8.2) CWE-436 vulnerability in istio.io/istio. A fix is available for istio.io/istio — see the affected versions and patch details below.

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

Also known asGHSA-jjv7-h974-mjch
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Dec 5, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Real-World Exposure

1 pkg affected
🐹istio.io/istio

Real-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 URI SAN is a context-specific, primitive GeneralName with tag number 6 (identifier octet 0x86). ExtractIDsFromSAN (san.go) 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) 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).

The 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.

Fixes are available in 1.30.9, 1.31.5 and 1.32.1 (istiod and ztunnel).

Workarounds

Use 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.

Proof of concept

On a cluster using cert-manager istio-csr with the CA Issuer:

  1. From a pod with its istio-ca-audience token, build a CSR whose SAN holds two entries: its real spiffe://<td>/ns/<ns>/sa/<sa> as a normal URI (0x86), and spiffe://<td>/ns/istio-system/sa/istiod encoded with a mis-matched tag (0x46 or 0xa6).
  2. 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.
  3. Present the leaf to istiod and fetch the target secret over SDS.

Reproduced on istiod 1.31.3, istio-csr 0.19.1 and cert-manager 1.21.3.

Impact

A 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.

Reported by Dave Aitel, OpenAI Security Research.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐹Goistio.io/istio≥ 0.0.0-20260112152740-3af7534ca9a9&&< 0.0.0-20261202212950-4c5fb90c6cb80.0.0-20261202212950-4c5fb90c6cb8go get istio.io/istio@v0.0.0-20261202212950-4c5fb90c6cb8

Detection & mitigation playbook

Open-source dependency
  1. Detect

    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.

  2. Fix

    Update istio.io/istio to 0.0.0-20261202212950-4c5fb90c6cb8 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-145366 is resolved across your whole dependency graph.

  3. Workarounds

    Put an independent control in front of the weakness: restrict the affected endpoint or interface to trusted networks, require an additional authentication factor or proxy-level check, and invalidate existing sessions and credentials in case the flaw has already been used.

Frequently Asked Questions

### 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
O3 Security · Impact-Aware SCA

Is CVE-2026-145366 in your dependencies?

Find it across Go, including transitive dependencies.