CVE-2026-145366: CVE-2026-145366: Workload Identity Impersonation via ASN.1 SAN Parser Differential in Istio
CVE-2026-145366: Workload Identity Impersonation via ASN.1 SAN Parser Differential in Istio Vulnerability ID: CVE-2026-145366 CVSS Score: 8.2 Published: 2026-12-04 CVE-2026-145366 is an ASN.1 interpretation conflict
CVE-2026-145366: Workload Identity Impersonation via ASN.1 SAN Parser Differential in Istio
Vulnerability ID: CVE-2026-145366
CVSS Score: 8.2
Published: 2026-12-04
CVE-2026-145366 is an ASN.1 interpretation conflict in the Istio service mesh control plane (istiod) and ambient data-plane proxy (ztunnel). When Istio is configured with an external certificate signer that copies raw Subject Alternative Name (SAN) extensions from Certificate Signing Requests (CSRs) into issued leaf certificates, a low-privileged workload can smuggle an unauthorized SPIFFE identity using non-standard ASN.1 tag classes or constructed encodings. Standard X.509 validators ignore the malformed tags during CSR authorization, while Istio re-parses the raw ASN.1 bytes and evaluates only the 5-bit tag number, enabling cross-namespace workload impersonation and extraction of TLS private keys via the Secret Discovery Service (SDS).
TL;DR
An ASN.1 parser differential in Istio's SAN extraction logic allows low-privileged workloads to smuggle unauthorized SPIFFE URIs past external certificate signers (such as cert-manager istio-csr), resulting in control-plane impersonation and mesh-wide secret disclosure.
Technical Details
- CVE ID: CVE-2026-145366 (GHSA-jjv7-h974-mjch)
- CWE Classification: CWE-436 (Interpretation Conflict) / CWE-863 (Incorrect Authorization)
- CVSS v3.1 Score: 8.2 High (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N)
- Affected Components: istiod (ExtractIDsFromSAN, ClientCertAuthenticator) & ztunnel
- Attack Vector: Network (mTLS CSR with mis-encoded ASN.1 SAN tag 0x46 or 0xa6)
- Security Impact: Cross-namespace SPIFFE identity impersonation & SDS private key disclosure
- Patched Versions: Istio 1.30.9, 1.31.5, 1.32.1
- CISA KEV Status: Not Listed
Affected Systems
- Istio Service Mesh (istiod)
- Istio Ambient Data-Plane Proxy (ztunnel)
-
istio: >= 1.30.0, < 1.30.9 (Fixed in:
1.30.9) -
istio: >= 1.31.0, < 1.31.5 (Fixed in:
1.31.5) -
istio: >= 1.32.0, < 1.32.1 (Fixed in:
1.32.1)
Code Analysis
Commit: bb2b5b9
Enforce context-specific primitive ASN.1 class on SAN GeneralNames and extract peer identities from verified x509.Certificate.URIs (release-1.32)
Commit: 6e4ddf6
Enforce context-specific primitive ASN.1 class on SAN GeneralNames and extract peer identities from verified x509.Certificate.URIs (release-1.31)
Commit: 6f9191f
Enforce context-specific primitive ASN.1 class on SAN GeneralNames and extract peer identities from verified x509.Certificate.URIs (release-1.30)
Mitigation Strategies
- Upgrade Istio control plane (istiod) and ambient data-plane proxies (ztunnel) to patched versions (1.30.9, 1.31.5, or 1.32.1) that extract peer identities exclusively from verified x509.Certificate.URIs.
- Configure external certificate signers (such as cert-manager and istio-csr) to reconstruct canonical X.509 SAN extensions from validated URI strings rather than copying raw ASN.1 extension octets from CSRs.
- Enforce strict Kubernetes NetworkPolicies restricting access to istiod XDS/SDS ports (15012) and external signer endpoints to authorized proxy components.
- Rotate mesh intermediate CA signing keys and trigger workload leaf certificate renewal following remediation to revoke any previously issued certificates containing malformed SAN entries.
Remediation Steps:
- Identify whether your Istio deployment uses an external certificate signer (e.g., cert-manager istio-csr with CA Issuer) that copies raw CSR SAN extensions into signed certificates.
- Upgrade Istio 1.30.x deployments to 1.30.9, 1.31.x deployments to 1.31.5, and 1.32.x deployments to 1.32.1.
- Update ztunnel DaemonSets in ambient mesh clusters to the corresponding patched release to ensure constructed 0xa6 SAN entries are rejected.
- Audit external CA issuer configurations and disable raw extension copying options, ensuring all GeneralName entries are re-encoded strictly as primitive context-specific [6] IA5Strings (0x86).
References
- GitHub Security Advisory: GHSA-jjv7-h974-mjch
- Istio Fix Commit (release-1.32)
- Istio Fix Commit (release-1.31)
- Istio Fix Commit (release-1.30)
- NVD Entry for CVE-2026-145366
- CVE.org Record: CVE-2026-145366
- RFC 5280 Appendix A.2: Implicitly Tagged ASN.1 Module
Read the full report for CVE-2026-145366 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.