GHSA-3WXW-5GH2-J2X2
Container configuration injection through OCI image config and oci.* keys
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-3WXW-5GH2-J2X2 divulgada · CVSS 9.9 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
Values taken from an OCI image's `config.json`, its environment, entry
point and working directory, are written into the generated LXC
configuration without validation. The same applies to the
`oci.entrypoint` and `oci.cwd` instance keys. As that configuration is
line based, a value containing a line break ends the directive and
whatever follows is parsed as additional LXC configuration, including
hooks that liblxc runs as root on the host. A line break in the
configuration key name reaches the same parser.
The tmpfs mount definitions of an OCI image are also turned into
`lxc.mount.entry` lines from attacker-controlled destination and option
fields, which can be crafted to add further mount fields and bind-mount
host paths into the container.
Impact
Anyone who can launch an instance from an image they control, or edit
the `oci.entrypoint` or `oci.cwd` keys of an OCI container, can run
arbitrary commands as root on the host, or bind-mount arbitrary host
paths into the container. This includes users confined to a restricted
project.
Since 7.5.0, `config.json` was also parsed for any image carrying such a
file rather than only for OCI images, so a plain imported image tarball
could reach the same code path.
Workarounds
Only allow trusted image sources. For restricted projects,
`restricted.images.servers` limits where images can be pulled from but
does not prevent importing a local image tarball.d
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-3wxw-5gh2-j2x2Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
