GHSA-F7XP-22PH-V444
Incus guest-API image export ignores the guest's project, exposing other projects' images
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-F7XP-22PH-V444 divulgada · CVSS 6.5 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The `/dev/incus` guest-API image export handler forwards the guest-controllable `project` query parameter straight through to the image export logic, without pinning it to the guest instance's own project. For a guest request the permission check carries no auth context and falls through to the public branch, whose only gate is that the image is public or cached. A container root with the guest-API image entitlement can therefore export any public or cached image of any project it names — including cached non-public images originally pulled from authenticated remotes into other projects.
Details
The guest-API export handler forwards the request as-is:
cmd/incusd/dev_incus.go:99 devIncusImageExport handler
cmd/incusd/dev_incus.go:109 r.RemoteAddr = "@dev_incus"
cmd/incusd/dev_incus.go:111 imageExport(d, r)`imageExport` reads the project from the guest-controllable query parameter, and for a `@dev_incus` request the only remaining gate is public-or-cached:
cmd/incusd/images.go:4469 projectName := request.ProjectParam(r) // from ?project=
cmd/incusd/images.go:4505-4513 @dev_incus branch
cmd/incusd/images.go:4511 if !imgInfo.Public && !imgInfo.Cached { return NotFound }Because the guest controls `?project=` and the export never pins the project to the instance, any `Public || Cached` image in any project is reachable.
Proof of concept
Code-chain verified (not executed). A container with `security.guestapi.images=true` issues, over the `/dev/incus` socket:
GET /1.0/images/<fingerprint>/export?project=<other-project>for a fingerprint of a cached image in another project, and receives the image contents.
Impact
A container root with the guest-API image entitlement can read image objects from projects other than its own, including cached non-public images pulled from authenticated remotes. This is a management-plane authorization-scope defect, not a container escape: the guest stays confined to its own filesystem and gains only read access to image objects the server already caches.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Gogithub.com/lxc/incus/v7/cmd/incusd |
Corregida | v7.6.0 | — | — |
v7.6.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/lxc/incus/security/advisories/GHSA-f7xp-22ph-v444Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
