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

GHSA-C6WX-8679-HPR9

Restricted client can import a private image from another project

Parche disponible
Descargar PNG JSON
CVSS 3.1
6.3
Media
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónv7.4.0
Exposición84 dDesde la divulgación, 27 ago 2026, 5:01 p. m.
Detección83 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
27 ago 26
19 nov 26
27 ago 26
17 sept 26
8 oct 26
29 oct 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-C6WX-8679-HPR9 divulgada · CVSS 6.3 (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
A project-restricted TLS client that cannot `GET /1.0/images/{fingerprint}` for a private image in another project can still import that same fingerprint into their own project. `imageDownload` reuses any matching local image via `GetImageFromAnyProject` without checking `Public` or `CanView`. Image blobs are stored globally under `var/images/<fingerprint>`, so the caller receives the private image properties and files.
This is the image-object counterpart of GHSA-c9f5-j9c3-mhrg (instance copy from `req.Source.Project` without `CanView`). It is not a privileged-container escape.
### Affected
- Runtime reproduction: Ubuntu 24.04 package Incus 6.0.0 (`6.0.0-1ubuntu0.3`) in an isolated Docker environment.
- Same unguarded call is present on `lxc/incus` at `v7.3.0-432-gf216a6d46` in `cmd/incusd/daemon_images.go`.
- Full release range should be confirmed by maintainers.
### Contrast (same restricted client, same fingerprint)
| Request | Result |
| --- | --- |
| `GET /1.0/images/<fp>?project=default` | 404 (`imageGet` requires `CanView` or public/secret) |
| `POST /1.0/images?project=hunt-b` with `source.type=image` pulling from an attacker HTTPS server that only echoes `<fp>` | operation Success; image now listed in `hunt-b` with the victim `properties` |
The attacker server never supplies image bytes. Incus clones the local private record and files. A harmless marker (`INCUS-HUNT-MARKER`) in the victim image properties appears in the attacker project.
### Impact
A restricted client with `CanCreateImages` (or the ability to create an instance from an image) in their own project, who already knows a private image fingerprint from another project, can:
- copy that image's properties and global blob into their project;
- then view, export, or launch instances from it inside their project.
This breaks Incus project isolation for private images.
Limitation: the 64-hex fingerprint is not returned by `GET` / list to a caller without `CanView`. The attacker must obtain it out of band (logs, backups, a former project membership, a predictable custom image, etc.). No victim interaction is required after that.
### Root cause
`imageGet` / `imagesGet` / `imageExport` apply `CheckPermission(ObjectImage, CanView)` and hide private images behind 404.
`imageDownload`, after a dest-project miss, does:

_, imgInfo, err = tx.GetImageFromAnyProject(ctx, fp)
// then CreateImage into the caller project — no Public / CanView check

Reachable from:
- `POST /1.0/images` with `source.type=image`
- `POST /1.0/instances` when `source.server != ""`
`AllowImageDownload` only enforces `restricted.images.servers` (remote host allowlist). It is not an object-level `CanView` check.
### Suggested fix
After `GetImageFromAnyProject` succeeds, only reuse the local image if:
1. `imgInfo.Public` is true, or
2. `CheckPermission` on `ObjectImage(imgInfo.Project, fingerprint)` with `EntitlementCanView` succeeds.
Otherwise continue with a real remote download. Do not copy the private local image.
### Dedup
Not a duplicate of:
- GHSA-mq9x-prm8-3vpw / GHSA-c9f5-j9c3-mhrg — instance copy `Source.Project` without `CanView` (same class, different object and entry point)
- GHSA-p8mm-23gg-jc9r — simplestreams concatenated fingerprint
- GHSA-f6m5-xw2g-xc4x / GHSA-p2v3-6wvc-cv3p — fingerprint used as a filesystem path
- GHSA-8gw4-p4wq-4hcv — URL import HEAD SSRF
- Incus 7.3 leftover name-as-path / OpenRoot issues
### PoC
Isolated Docker environment attached as `incus-private-image-anyproject.zip`.

unzip incus-private-image-anyproject.zip
cd incus-private-image-anyproject
./run.sh

Expected: `all_checks_passed: true`, `verdict=private_image_cross_project_reuse_reproduced_at_runtime`.
The container starts Ubuntu 24.04 + distro Incus 6.0.0, creates a private image in `default` (marker in `properties.description`), a project `hunt-b`, and a restricted TLS cert bound only to `hunt-b`. It then runs the contrast above. Harmless marker only; no instance is launched.
`results/runtime.json` from our run is included.
### Severity
Medium. Suggested: `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N` = 6.3.
| Metric | Value | Reason |
| --- | --- | --- |
| AV | N | HTTPS API |
| AC | H | 64-hex fingerprint required; not enumerable via GET/list (404) |
| PR | L | project-restricted TLS client with image-create rights, not admin |
| UI | N | no victim interaction |
| S | C | breaks project isolation (same Scope as GHSA-c9f5) |
| C | H | full private image (properties + rootfs blob) |
| I | N | victim image is not modified |
| A | N | no availability impact |
If maintainers treat fingerprint knowledge like instance-name knowledge in GHSA-c9f5, the matching vector is `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N` = 7.7. I am reporting 6.3.
### Credit
Yuliang Xiao

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:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
github.com/lxc/incus/v7/cmd/incusd< v7.4.0
v7.4.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.4.0 — —
Versiones corregidasv7.4.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-c6wx-8679-hpr9

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