llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Go · github.com/lxc/incus/v7/cmd/incusd

GHSA-H2J8-4CRH-VHFC

Incus exposes migration websocket secrets to project event listeners, allowing migration hijack

Parche disponible
Descargar PNG JSON
CVSS 3.1
7.1
Alta
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:L Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónv7.6.0
Exposición21 dDesde la divulgación, 29 oct 2026, 5:15 p. m.
Detección20 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
29 oct 26
19 nov 26
20 nov 26
29 oct 26
4 nov 26
9 nov 26
15 nov 26
20 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-H2J8-4CRH-VHFC divulgada · CVSS 7.1 (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

Instance, volume and snapshot migration operations embed their per-connection websocket secrets in the operation metadata. That metadata is broadcast to every event listener holding view access on the operation's project, and is also returned by operation queries. Unlike exec and console, the migration websocket authorizes a connection on the secret alone, with no binding to the operation's requestor. A client with event-view access to the project can therefore read the secret and connect to an in-flight migration's data channels before the legitimate peer, hijacking the transfer of an instance it may not otherwise read.

Details

The migration source/sink renders its per-connection secrets into the operation metadata:

cmd/incusd/migrate.go:181   migrationSourceWs.Metadata() -> {control: <secret>, fs: <secret>}

That metadata is broadcast on the operation event stream to every listener with `can_view_events` on the project, while the operation is still `Pending`:

internal/server/operations/operations.go:537   rendered operation includes Metadata
internal/server/operations/linux.go:63          sendEvent -> Send(projectName, EventTypeOperation, ...)

The migration websocket authorizes on the secret only — no requestor check, in contrast to exec and console:

cmd/incusd/migrate.go:190-211        migrationSourceWs.Connect(): matches r.FormValue("secret") only
cmd/incusd/instance_exec.go:96       execWs.connect(): if !op.IsSameRequestor(r) { Forbidden }
cmd/incusd/instance_console.go:94    consoleWs.connect(): if !op.IsSameRequestor(r) { Forbidden }

and the websocket endpoint itself is `AllowUntrusted`:

cmd/incusd/operations.go:54   operationWebsocketGet  AllowUntrusted: true

A restricted certificate scoped to a project is granted every entitlement on that project, so it holds both `can_view_events` and `can_view_operations` — meaning the secret is reachable both through the event stream and through `GET /1.0/operations/{id}`.

Proof of concept

Runtime-verified on Incus 6.0.0 (single daemon, privileged container, attacker remote looped back over HTTPS — the CLI-mediated migration path that generates websocket secrets):

=== operation event broadcast (sniffer view, secrets masked) ===
{"type":"operation","project":"default",
 "metadata":{"class":"websocket","description":"Migrating instance","id":"2689233b-...",
   "metadata":{"control":"bc553c24...","fs":"2ea16bec..."},
   "resources":{"instances":["/1.0/instances/c1"]},"status":"Pending","status_code":105}}

=== attacker websocket connection times (natural race) ===
control: connected +0.012s after secret broadcast
fs:      connected +0.013s after secret broadcast

=== legitimate migration target, arriving second (incusd journal) ===
level=error msg="Failed migration on target" err="Failed getting migration target
  filesystem connection: websocket: bad handshake" instance=c2m

=== attacker receives migration-channel bytes ===
first data frame = 3715-byte migration index header JSON
  {"config":{"Container":{...full instance config, image fingerprint, volatile.*...}}}

Controls in the same lab: `incus restart` operations broadcast no secret-bearing events (0/3), and the same migration without the hijacker succeeds. Recorded limitations: the event subscriber used an admin-equivalent certificate (the `can_view_events`-only restricted path is code-chain); the demo was single-daemon; and the full rootfs transfer after the index header was not captured — the channel hijack, rejection of the legitimate consumer, and first payload bytes are the captured facts.

Impact

A client with event-view access to a project can capture the connection secrets of an in-flight migration and hijack its data websockets, winning a race measured at tens of milliseconds in the lab. The legitimate migration then fails server-side, and the attacker receives the migration channel — including the full instance configuration, image fingerprint and volatile keys in the index header, and the instance's filesystem stream that follows — for an instance it may not otherwise read.

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

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:L
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
github.com/lxc/incus/v7/cmd/incusd< v7.6.0
v7.6.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Gogithub.com/lxc/incus/v7/cmd/incusd
Corregida v7.6.0 — —
Versiones corregidasv7.6.0
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/lxc/incus/security/advisories/GHSA-h2j8-4crh-vhfc

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