llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Go · github.com/traefik/traefik/v3

GHSA-M6WX-622R-48R9

Kubernetes Ingress service middleware bypasses crossProviderNamespaces

Parche disponible
Descargar PNG JSON
CVSS 4.0
7.0
Alta
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -3 d de la divulgación
Exposición91 dDesde la divulgación, 21 ago 2026, 4:45 a. m.
Detección89 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche v3.7.11
Monitoreo
Detectada +1
18 ago 26
21 ago 26
18 nov 26
20 nov 26
18 ago 26
10 sept 26
4 oct 26
28 oct 26
20 nov 26
FechaFaseEventoDetalle
Remediación Parche v3.7.11 github.com/traefik/traefik/v3 · -3 d desde divulgación
Divulgación Publicada GHSA-M6WX-622R-48R9 divulgada · CVSS 7 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Summary

There is a medium severity vulnerability in Traefik's Kubernetes Ingress provider. The `providers.kubernetesIngress.crossProviderNamespaces` allowlist was enforced for the `router.middlewares` and `service.serverstransport` annotations, but not for the `traefik.ingress.kubernetes.io/service.middlewares` Service annotation, whose value was copied into the generated dynamic service without checking the Service's namespace. A tenant restricted to a namespace excluded from the allowlist could therefore attach an operator-owned middleware from another provider to its own Service, and, when that middleware injects a backend credential, recover the credential at a backend it controls. Only the v3.7 line from v3.7.1 onwards is affected: the `crossProviderNamespaces` option was introduced in v3.7.1, and neither Traefik v2 nor the v3 lines up to v3.6 carry it.

Patches

  • https://github.com/traefik/traefik/releases/tag/v3.7.11

For more information

If you have any questions or comments about this advisory, please open an issue https://github.com/traefik/traefik/issues.

<details>
<summary>Original Description</summary>

Summary

The Kubernetes Ingress provider does not enforce `crossProviderNamespaces` for the documented `traefik.ingress.kubernetes.io/service.middlewares` Service annotation. A namespace-limited tenant excluded from the allowlist can apply an operator-owned middleware from another provider to its own Service. If that middleware injects a backend credential, the tenant can recover the credential at a backend it controls.

Details

`providers.kubernetesIngress.crossProviderNamespaces` is intended to restrict which Kubernetes namespaces may use cross-provider references. Traefik v3.7.10 correctly checks this option for `router.middlewares` and `service.serverstransport`, but `pkg/provider/kubernetes/ingress/kubernetes.go::loadService` copies `svcConfig.Service.Middlewares` into `svc.Middlewares` without checking the Service namespace.

The generated dynamic Service therefore retains a reference such as `operator-secret@file`. During request handling, Traefik resolves and executes that middleware before forwarding the request to the tenant backend.

This was reproduced on the current stable v3.7.10 (`2a2349356c01b1b1f7ecddb0c17b30c97f5241e7`). Current `master` was also affected when checked on 2026-08-10.

This is related to the `crossProviderNamespaces` advisory family, but it is not the same path as GHSA-42cj-m3vj-89wv or GHSA-96qj-4jj5-wcjc: this issue uses the standard Kubernetes Ingress Service middleware annotation and reaches an HTTP middleware executed before a tenant-controlled backend.

### PoC
traefik-service-middleware-poc.zip https://github.com/user-attachments/files/30907045/traefik-service-middleware-poc.zip

  1. Start Traefik v3.7.10 with `KUBECONFIG` pointing to an isolated test cluster:
traefik --configFile=static.yml
  1. Apply the tenant fixture:
kubectl apply -f tenant.yml
kubectl -n poc-tenant rollout status deployment/attacker-backend
  1. As the namespace-limited tenant ServiceAccount, add the cross-provider Service middleware reference:
kubectl --as=system:serviceaccount:poc-tenant:tenant-author \
  -n poc-tenant annotate service attacker-backend \
  traefik.ingress.kubernetes.io/service.middlewares=operator-secret@file
  1. After the provider reloads, send one request:
curl -sS -H 'Host: poc.local' http://127.0.0.1:18080/

The tenant backend response contains:

X-Operator-Secret: candidate-007-canary

Negative control:

kubectl --as=system:serviceaccount:poc-tenant:tenant-author \
  -n poc-tenant annotate service attacker-backend \
  traefik.ingress.kubernetes.io/service.middlewares-

curl -sS -H 'Host: poc.local' http://127.0.0.1:18080/

The route still returns the backend response, but `X-Operator-Secret` is absent.

Impact

An excluded Kubernetes tenant can execute a middleware owned by another Traefik provider on requests to its own backend. In deployments where an operator middleware injects an upstream API key, bearer token, or similar credential, the tenant can disclose that credential without access to the operator configuration or Kubernetes Secrets.

The proposed severity is Medium. The attack requires low Kubernetes namespace privileges and a pre-existing security-sensitive middleware whose qualified name is known to the tenant.

</details>

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:P
NingunoPresentes
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:N
AltoBajoNinguno
Disponib. (sistema)VA:N
AltoBajoNinguno
Confid. (posterior)SC:H
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
github.com/traefik/traefik/v3≥ v3.7.1 ≤ v3.7.10
v3.7.1
v3.7.10
v3.7.19
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
gogithub.com/traefik/traefik/v3
Corregida v3.7.11 -3 d v3.7.19 no afectada
Versiones corregidasv3.7.11
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/traefik/traefik/security/advisories/GHSA-m6wx-622r-48r9

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.