Incus has an arbitrary file write on host via `exec-output` symlink in crafted image
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in github.com/lxc/incus/v7/cmd/incusd 7.2.0.
Incus is a system container and virtual machine manager. Prior to version 7.2.0, the `record-output` parameter of the `/instances/$name/exec` endpoint stores the output of the command in the `exec-output` directory of the instance. If `exec-output` is a symlink, file named `exec_UUID.stdout` and `exec_UUID.stderr` can be written to an arbitrary location where the `.stdout` file will contain arbitrary content. This behavior can be abused for arbitrary command execution. Version 7.2.0 contains a patch.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Canonical | >=4.0.0 <4.0.11, >=5.0.0 <5.0.7, >=5.1.0 <5.21.5, >=6.0.0 <6.9.0 | ||
| lxc | <7.2.0 | ||
| go: github.com/lxc/incus/v7/cmd/incusd | <7.2.0 | 7.2.0 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in github.com/lxc/incus/v7/cmd/incusd (Go), strongest first
Embed
A live severity badge for an advisory, README or ticket