CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-145366

CVE-2026-145366: Workload Identity Impersonation via ASN.1 SAN Parser Differential in Istio

Alon Barad
Alon Barad
Software Engineer

Dec 5, 2026·11 min read·4 visits

Executive Summary (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.

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

Vulnerability Overview

Istio relies on X.509 v3 certificates carrying SPIFFE (Secure Production Identity Framework for Everyone) URIs inside the Subject Alternative Name (SAN) extension to establish cryptographic workload identity across a Kubernetes cluster. Both the control plane (istiod) and the ambient mesh node proxy (ztunnel) extract these URI SANs to authenticate connecting peers and authorize access to mesh resources, including the Secret Discovery Service (SDS).

CVE-2026-145366 (tracked also as GHSA-jjv7-h974-mjch) is an ASN.1 parser differential affecting Istio versions 1.30.0 through 1.30.8, 1.31.0 through 1.31.4, and 1.32.0. The flaw resides in security/pkg/pki/util/san.go within the ExtractIDsFromSAN function, as well as the client certificate authentication flow in security/pkg/server/ca/authenticate/cert_authenticator.go and the Rust-based certificate parser in ztunnel. The vulnerability is classified under CWE-436 (Interpretation Conflict) and CWE-863 (Incorrect Authorization).

In deployments that delegate certificate issuance to an external signer—such as cert-manager running istio-csr with a CA Issuer—the external authority validates the incoming Certificate Signing Request (CSR) using standard X.509 parsing libraries like Go's crypto/x509. Standard libraries strictly enforce RFC 5280 ASN.1 tag class and primitive encoding requirements when populating verified URI lists. However, if the external signer copies the raw, unmodified SAN extension bytes from the CSR into the signed leaf certificate, any non-standard ASN.1 entries ignored during authorization remain embedded in the issued certificate.

When the workload presents this signed certificate to istiod or ztunnel, Istio's custom SAN extractor unmarshals the raw ASN.1 extension instead of reading the pre-verified x509.Certificate.URIs field. Because Istio's parser inspects only the 5-bit tag number (6 for uniformResourceIdentifier) while ignoring the ASN.1 class bits and the constructed flag, it extracts the smuggled entry as a valid SPIFFE identity. This allows any compromised pod with a valid service account token to impersonate privileged workloads—including istiod itself—and download arbitrary TLS private keys across namespaces.

Root Cause Analysis

Under RFC 5280 Section 4.2.1.6, the Subject Alternative Name extension (OID 2.5.29.17) is defined as an ASN.1 SEQUENCE OF GeneralName. Each GeneralName is an implicitly tagged CHOICE element encoded using ASN.1 Distinguished Encoding Rules (DER) in a Tag-Length-Value (TLV) layout. The single-byte identifier (Tag) octet is partitioned into three distinct fields: bits 8 and 7 specify the tag class (00 Universal, 01 Application, 10 Context-Specific, 11 Private), bit 6 indicates whether the value is primitive (0) or constructed/compound (1), and bits 5 through 1 define the tag number (0 through 30).

For a uniformResourceIdentifier ([6] IA5String), RFC 5280 specifies an implicit context-specific primitive string with tag number 6. In binary, the class bits must be 10, the constructed bit must be 0, and the tag number bits must be 00110, yielding the exact byte 0x86 (10000110). Standard X.509 implementations, including Go's crypto/x509 package, validate that each GeneralName element belongs to the context-specific class (asn1.ClassContextSpecific) and is primitive before adding a tag-6 value to the parsed cert.URIs slice.

Prior to the patch, Istio's ExtractIDsFromSAN function iterated over the raw ASN.1 sequence inside the SAN extension using encoding/asn1.Unmarshal(rest, &rawValue). Once unmarshaled into an asn1.RawValue struct, Go separates the identifier octet into rawValue.Class, rawValue.IsCompound, and rawValue.Tag. Istio's implementation looked up identityTypeMap[rawValue.Tag] directly without verifying that rawValue.Class == asn1.ClassContextSpecific or that rawValue.IsCompound == false.

This omission created multiple smuggling primitives that bypass crypto/x509 inspection while registering as valid URIs in Istio:

  • Application-Class Tag 6 (0x46): Encoded with class 01 (Application), primitive 0, and tag 00110 (6). Go's crypto/x509 ignores non-context-specific entries in GeneralNames, leaving cert.URIs unaffected, whereas ExtractIDsFromSAN maps rawValue.Tag == 6 to TypeURI.
  • Constructed Context-Specific Tag 6 (0xa6): Encoded with class 10 (Context-Specific), constructed 1, and tag 00110 (6). Both istiod and the Rust ASN.1 parser in ztunnel accepted constructed 0xa6 elements as valid URI identities.
  • Unmapped Tag Fallback to DNS (0): Because identityTypeMap mapped TypeDNS to the zero value (0), any unmapped tag number (such as rfc822Name at tag 1 or otherName at tag 0) evaluated to 0 on map lookup failure, causing ExtractIDsFromSAN to return non-DNS fields as TypeDNS identities.
  • URI Strings in Non-URI Slots: Because ClientCertAuthenticator called util.ExtractIDs(chains[0][0].Extensions), which filters extracted identities solely by strings.HasPrefix(id, "spiffe://") regardless of whether Identity.Type was TypeURI, TypeDNS, or TypeIP, a spiffe:// string placed inside a dNSName (0x82) or rfc822Name (0x81) slot was also promoted to a valid caller identity by istiod.

Code Analysis

The remediation across commits bb2b5b93fe0eb525c307b4f62fa98a01bc4dfd39 (1.32), 6e4ddf6a3be305a4962b044d44ed496ac9c8f6c5 (1.31), and 6f9191f841d3a4c5514590db09c3eab33cddf4d5 (1.30) addresses both the low-level ASN.1 unmarshaling defect in security/pkg/pki/util/san.go and the architectural anti-pattern of re-parsing raw certificate extensions during peer authentication in security/pkg/server/ca/authenticate/cert_authenticator.go.

In security/pkg/pki/util/san.go, ExtractIDsFromSAN previously appended every unmarshaled asn1.RawValue directly into the ids slice using an unchecked map lookup:

// Vulnerable code in security/pkg/pki/util/san.go
for len(rest) > 0 {
	var rawValue asn1.RawValue
	rest, err = asn1.Unmarshal(rest, &rawValue)
	if err != nil {
		return nil, fmt.Errorf("failed to unmarshal SAN extension: %v", err)
	}
	// BUG: Ignores rawValue.Class and rawValue.IsCompound.
	// Unmapped tags default to 0 (TypeDNS).
	ids = append(ids, Identity{Type: identityTypeMap[rawValue.Tag], Value: rawValue.Bytes})
}

The patched implementation of ExtractIDsFromSAN enforces strict checking of the ASN.1 class and compound flag, checks the comma-ok boolean on identityTypeMap lookup, and introduces a new helper function, ExtractIDsFromVerifiedCert, which reads directly from cert.URIs:

// Patched code in security/pkg/pki/util/san.go
for len(rest) > 0 {
	var rawValue asn1.RawValue
	rest, err = asn1.Unmarshal(rest, &rawValue)
	if err != nil {
		return nil, fmt.Errorf("failed to unmarshal SAN extension: %v", err)
	}
	// Enforce RFC 5280: only primitive, context-specific GeneralName tags are valid.
	// Drops application/universal/private classes (e.g., 0x46) and constructed tags (e.g., 0xa6).
	if rawValue.Class != asn1.ClassContextSpecific || rawValue.IsCompound {
		continue
	}
	idType, ok := identityTypeMap[rawValue.Tag]
	if !ok {
		// Skip unmapped GeneralName types (otherName, rfc822Name) rather than defaulting to TypeDNS.
		continue
	}
	ids = append(ids, Identity{Type: idType, Value: rawValue.Bytes})
}
 
// New function: extracts only URI SANs already verified by Go's crypto/x509 TLS stack.
func ExtractIDsFromVerifiedCert(cert *x509.Certificate) []string {
	ids := []string{}
	for _, u := range cert.URIs {
		ids = append(ids, u.String())
	}
	return ids
}

In security/pkg/server/ca/authenticate/cert_authenticator.go, both authenticateGrpc and authenticateHTTP previously passed chains[0][0].Extensions to util.ExtractIDs. The patch replaces this with util.ExtractIDsFromVerifiedCert(chains[0][0]) and adds an explicit check for an empty identity slice so that a certificate lacking valid URI SANs returns an authentication error rather than returning an empty security.Caller struct that would short-circuit fallback authenticators:

// Patched code in security/pkg/server/ca/authenticate/cert_authenticator.go
ids := util.ExtractIDsFromVerifiedCert(chains[0][0])
if len(ids) == 0 {
	// Error rather than return an empty Caller: a Caller with no identities
	// would win the authenticator chain and block fallback to token auth.
	return nil, fmt.Errorf("no URI SAN identity in verified certificate")
}
 
return &security.Caller{
	AuthSource: security.AuthSourceClientCertificate,
	Identities: ids,
}, nil

> [!NOTE] > The dual-layered fix is comprehensive across the Go control plane. By migrating ClientCertAuthenticator to consume x509.Certificate.URIs via ExtractIDsFromVerifiedCert, istiod completely eliminates any parser differential between Go's TLS handshake verifier and Istio's caller identity assignment, while the hardening of ExtractIDsFromSAN protects downstream utilities that still inspect raw pkix.Extension structures.

Exploitation

Exploiting CVE-2026-145366 requires two specific prerequisites: first, the target Istio cluster must use an external certificate signer (such as cert-manager with istio-csr backed by a CA Issuer) that authorizes CSRs based on standard X.509 URI fields while copying the raw CSR SAN extension bytes into the issued certificate; second, the attacker must control a low-privileged pod or possess a valid Kubernetes ServiceAccount token within any mesh-enabled namespace.

To execute the attack, the adversary constructs a custom X.509 Certificate Signing Request (CSR) containing a manually marshaled SAN extension (OID 2.5.29.17). Inside the GeneralNames ASN.1 sequence, the attacker places two entries:

  1. A standard RFC 5280 context-specific primitive tag 6 (0x86) encoding the attacker pod's legitimate SPIFFE URI, such as spiffe://cluster.local/ns/default/sa/unprivileged-app.
  2. A malformed ASN.1 entry—either an application-class primitive tag 6 (0x46), a constructed context-specific tag 6 (0xa6), or an rfc822Name (0x81)—encoding the target high-privilege SPIFFE URI, specifically spiffe://cluster.local/ns/istio-system/sa/istiod.

The attacker submits this CSR to istio-csr authenticating with their legitimate ServiceAccount JWT. When istio-csr parses the CSR using Go's crypto/x509.ParseCertificateRequest, the standard library populates csr.URIs exclusively from 0x86 entries. Because csr.URIs contains only spiffe://cluster.local/ns/default/sa/unprivileged-app, which matches the caller's ServiceAccount token, the signer approves the request. When the upstream CA Issuer signs the certificate by copying the raw SAN extension bytes from the CSR, the resulting leaf certificate carries both the 0x86 and 0x46 entries signed by the mesh trust anchor.

Finally, the attacker initiates a direct mTLS connection to istiod on port 15012 (the XDS/SDS gRPC endpoint) presenting the newly issued client certificate. During the TLS handshake, Go's crypto/tls verifies the certificate signature against the mesh root CA. Subsequently, ClientCertAuthenticator.authenticateGrpc invokes util.ExtractIDs on the raw extension bytes, extracts both spiffe://cluster.local/ns/default/sa/unprivileged-app and spiffe://cluster.local/ns/istio-system/sa/istiod, and populates security.Caller.Identities with both principals. With the istiod identity attached to the gRPC session, the attacker issues Envoy SDS DiscoveryRequest messages to download TLS certificates and private keys belonging to other namespaces, or retrieves the mesh CA signing key in standard istio-csr deployments.

Impact Assessment

The security impact of CVE-2026-145366 is a complete compromise of workload identity isolation across the Istio service mesh. In a multi-tenant or namespace-segmented Kubernetes cluster, SPIFFE IDs serve as the foundational cryptographic primitive for both mutual TLS (mTLS) peer authentication and Istio AuthorizationPolicy enforcement. By smuggling arbitrary SPIFFE URIs into a legitimately signed leaf certificate, an attacker with code execution in any low-privileged pod can impersonate any service account in any namespace.

Beyond data-plane spoofing against ztunnel in ambient mesh deployments, the primary escalation path targets the control plane (istiod) over its Secret Discovery Service (SDS). When an attacker impersonates a privileged service account or spiffe://cluster.local/ns/istio-system/sa/istiod, RBAC checks gating SDS secret distribution are bypassed. This allows the attacker to exfiltrate private keys and TLS certificates belonging to other namespaces, and in the documented istio-csr architecture, to retrieve the mesh CA signing key itself—enabling offline minting of arbitrary mesh certificates.

CVE-2026-145366 carries a CVSS v3.1 base score of 8.2 (High) with the vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N. The Attack Vector is Network (AV:N) with Low Privileges Required (PR:L) and No User Interaction (UI:N), reflecting that any mesh pod with network reachability to the certificate signer and istiod can trigger the flaw. Attack Complexity is rated High (AC:H) because exploitation depends on a non-default external signer configuration that copies raw CSR SAN octets into issued certificates (built-in Istio CA and cacerts plugged-in CA deployments are not affected because istiod constructs the SAN extension itself). The Scope is Changed (S:C) with High Confidentiality (C:H) and High Integrity (I:H) impact due to cross-namespace boundary traversal and total subversion of mesh authentication.

Remediation

Operators running affected Istio releases in conjunction with external certificate signers should upgrade istiod and ztunnel to the patched versions immediately:

  • For the 1.30.x release stream, upgrade to Istio 1.30.9 or later.
  • For the 1.31.x release stream, upgrade to Istio 1.31.5 or later.
  • For the 1.32.x release stream, upgrade to Istio 1.32.1 or later.

In addition to patching Istio, administrators utilizing cert-manager (istio-csr) or custom external PKI issuers should audit how CSR extensions are handled during certificate issuance. External signers must not blindly copy raw ASN.1 extension octets from untrusted CSRs into signed leaf certificates. Instead, the signing authority should parse the validated URI SANs from the CSR and re-encode a clean, canonical X.509 SAN extension from scratch.

If an immediate control-plane upgrade is not feasible, operators can eliminate the attack vector by reconfiguring their external CA issuer to reconstruct extensions rather than mirroring raw CSR bytes, or by migrating temporarily to Istio's plugged-in CA (cacerts secret mounted directly into istiod), which generates SAN extensions internally from authenticated Kubernetes token reviews.

Furthermore, after upgrading both istiod and the external signer, security teams should rotate the mesh intermediate CA and force leaf certificate re-issuance across all workloads to invalidate any pre-existing certificates that could contain smuggled ASN.1 tags.

Official Patches

IstioOfficial Istio GitHub Security Advisory (GHSA-jjv7-h974-mjch)
IstioIstio 1.32.1 Patched Release
IstioIstio 1.31.5 Patched Release
IstioIstio 1.30.9 Patched Release

Fix Analysis (3)

Technical Appendix

CVSS Score
8.2/ 10
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N

Affected Systems

Istio Service Mesh (istiod)Istio Ambient Data-Plane Proxy (ztunnel)

Affected Versions Detail

Product
Affected Versions
Fixed Version
istio
istio
>= 1.30.0, < 1.30.91.30.9
istio
istio
>= 1.31.0, < 1.31.51.31.5
istio
istio
>= 1.32.0, < 1.32.11.32.1
AttributeDetail
CVE IDCVE-2026-145366 (GHSA-jjv7-h974-mjch)
CWE ClassificationCWE-436 (Interpretation Conflict) / CWE-863 (Incorrect Authorization)
CVSS v3.1 Score8.2 High (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N)
Affected Componentsistiod (ExtractIDsFromSAN, ClientCertAuthenticator) & ztunnel
Attack VectorNetwork (mTLS CSR with mis-encoded ASN.1 SAN tag 0x46 or 0xa6)
Security ImpactCross-namespace SPIFFE identity impersonation & SDS private key disclosure
Patched VersionsIstio 1.30.9, 1.31.5, 1.32.1
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
CWE-436
Interpretation Conflict

The product processes data across multiple components where the components interpret the structure or semantics of the data differently, allowing security checks in one component to be bypassed when consumed by another.

Vulnerability Timeline

Initial development and testing of ASN.1 tag-class fixes across Istio control plane and ztunnel.
2026-11-10
Fix commits merged to Istio release-1.32 (bb2b5b93fe0eb525c307b4f62fa98a01bc4dfd39) and release-1.31 (6e4ddf6a3be305a4962b044d44ed496ac9c8f6c5) branches.
2026-12-01
Fix commit merged to Istio release-1.30 branch (6f9191f841d3a4c5514590db09c3eab33cddf4d5).
2026-12-02
Official security advisory GHSA-jjv7-h974-mjch and CVE-2026-145366 published alongside patched releases 1.30.9, 1.31.5, and 1.32.1.
2026-12-04

References & Sources

  • [1]GitHub Security Advisory: GHSA-jjv7-h974-mjch
  • [2]Istio Fix Commit (release-1.32)
  • [3]Istio Fix Commit (release-1.31)
  • [4]Istio Fix Commit (release-1.30)
  • [5]NVD Entry for CVE-2026-145366
  • [6]CVE.org Record: CVE-2026-145366
  • [7]RFC 5280 Appendix A.2: Implicitly Tagged ASN.1 Module

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•23 minutes ago•CVE-2026-140229
7.1

CVE-2026-140229: Unbounded Memory Allocation via Delayed Decompression Ratio Evaluation in node-tar

CVE-2026-140229 (GHSA-9239-v992-p74f) is a denial-of-service vulnerability in the node-tar archive extraction library prior to version 8.0.0. The vulnerability occurs because the maxDecompressionRatio check is performed after the underlying zlib decompression stream has already inflated and materialized input chunks into memory. An attacker supplying a crafted, highly compressed archive can force the Node.js runtime to allocate unbounded memory buffers before the ratio limit is evaluated, terminating the process via an Out of Memory (OOM) crash.

Amit Schendel
Amit Schendel
1 views•9 min read
•about 2 hours ago•CVE-2026-145367
7.7

CVE-2026-145367: Control Plane Nil Pointer Dereference and Crash-Loop DoS in Istio Ambient Mode

A denial-of-service vulnerability exists in the Istio Pilot control plane (istiod) when operating in ambient mesh mode. In versions 1.30.0 through 1.30.8, 1.31.0 through 1.31.4, and 1.32.0, creating a ServiceEntry with DNS or DNS_ROUND_ROBIN resolution attached to a waypoint proxy that resolves to zero endpoints causes buildCluster to return a nil pointer. The waypoint inbound cluster generation routine subsequently dereferences this nil pointer without validation, triggering an unhandled Go runtime panic that places all istiod replicas into a continuous crash-loop.

Amit Schendel
Amit Schendel
5 views•11 min read
•about 3 hours ago•CVE-2026-144303
7.5

CVE-2026-144303: Denial of Service via Uncaught Exception in Node.js websocket-driver

CVE-2026-144303 (GHSA-mxfr-rg9v-vp3c) is a denial-of-service vulnerability affecting the websocket-driver package for Node.js prior to version 0.8.3. When a remote client sends WebSocket frame data concatenated in the same TCP segment as the initial HTTP Upgrade request headers, applications following the documented integration pattern pass the trailing byte buffer to driver.io.write() before calling driver.start(). Because internal protocol parser states and frame reader components are not initialized until driver.start() executes, attempting to parse early frame bytes triggers an unhandled TypeError, terminating the Node.js process.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 5 hours ago•CVE-2026-137197
8.1

CVE-2026-137197: Command Injection on Windows in Node.js cross-spawn via Batch File Resolution Divergence

CVE-2026-137197 (GHSA-w3gc-668g-rf8f) is an OS command injection vulnerability (CWE-78) in the Node.js cross-spawn library affecting versions prior to 6.0.8 and 7.1.1 on Microsoft Windows. The flaw stems from parsing and resolution discrepancies between how cross-spawn identifies batch scripts (.bat and .cmd) and how Windows cmd.exe resolves target files. When a command string contains embedded double quotes, token delimiters, trailing whitespace, or relies on a child-specific PATHEXT environment variable, cross-spawn fails to detect that the target is a batch script and omits cmd.exe metacharacter escaping on user-supplied arguments, enabling arbitrary OS command execution.

Amit Schendel
Amit Schendel
8 views•13 min read
•about 9 hours ago•GHSA-6PPQ-9X26-5R92
5.3

GHSA-6ppq-9x26-5r92: Secret Retention Policy Bypass via Zero Expiry Override in Luzifer OTS

An input validation flaw in github.com/Luzifer/ots prior to version 1.21.8 allows unauthenticated remote attackers to bypass configured secret expiration policies. By supplying an expire=0 query parameter during secret creation, clients force the server to store secrets without a time-to-live (TTL) in both Redis and in-memory storage backends. This invalidates administrative data retention policies and permits unbounded storage consumption via unread secrets.

Alon Barad
Alon Barad
7 views•9 min read
•about 13 hours ago•CVE-2026-91110
6.4

CVE-2026-91110: Stored Cross-Site Scripting via URL Sanitisation Bypass in Silverstripe Framework

A stored Cross-Site Scripting (XSS) vulnerability exists in Silverstripe Framework versions prior to 6.2.13 within the HTML sanitisation engine (SilverStripe\Core\XssSanitiser). The sanitiser fails to strip or normalize non-printable ASCII C0 control characters and DEL bytes prior to evaluating URI attributes against scheme-blocking regular expressions. Because modern web browsers ignore these control bytes according to the WHATWG URL Standard, an authenticated CMS author can embed control bytes before or within a javascript: URI to bypass detection and execute arbitrary JavaScript in the browser context of users viewing the rendered content.

Alon Barad
Alon Barad
10 views•9 min read