Horizon Alert
Summary of the vulnerability and why it matters
This advisory describes a vulnerability in Incus, a system for managing containers and virtual machines, that could allow for arbitrary command execution. The issue arises from how the system handles command output when a specific configuration is present, potentially leading to unauthorized control. The main concern is confirming relevance and exposure given the nature of the affected technology.
- A system management tool has a command execution flaw.
- It could allow unauthorized control of systems.
- Confirm if our systems use this management tool.
Attack Path
How an attacker could exploit the issue
An attacker with low-privileged access to Incus could exploit this vulnerability by targeting the `record-output` parameter of the `/instances/$name/exec` endpoint. If the `exec-output` directory is a symbolic link, the attacker can manipulate it to write files containing arbitrary content to unintended locations, potentially leading to arbitrary command execution.
- Requires authenticated access.
- Triggered by manipulating `exec-output` as a symlink.
- Risk of arbitrary command execution.
Live Threat
Current exploitation, exposure, and threat context
When the `record-output` parameter is used with the `/instances/$name/exec` endpoint and the `exec-output` directory is a symlink, arbitrary files can be written to an arbitrary location. This vulnerability could lead to arbitrary command execution when supported by the advisory's conditions.
- Instance data and system files at risk.
- Command output written to arbitrary locations.
- Arbitrary command execution could occur.
Operational Fix
Recommended remediation, mitigation, and detection steps
The `incus` system container and virtual machine manager's `exec-output` functionality requires attention from platform or infrastructure teams responsible for managing the container environment. The initial step involves identifying all deployments of `incus`, determining their reachability and criticality, and confirming the accountable owner before planning remediation.
- Platform or infrastructure teams own resolution.
- Verify `incus` deployments and reachability.
- Plan and coordinate remediation efforts.