Horizon Alert
Summary of the vulnerability and why it matters
This advisory details a path traversal vulnerability affecting Incus, a technology used for container management. The flaw allows unauthorized manipulation of files on hosts, potentially leading to system compromise or disruption by maliciously crafted migration requests. Understanding this vulnerability is important for assessing potential risks to our containerized environments.
- Malicious migration requests can write files anywhere.
- Impacts systems managing containers with direct storage access.
- Confirm relevance and exposure of our Incus deployments.
Attack Path
How an attacker could exploit the issue
An attacker who controls a migration source can exploit this vulnerability by sending specially crafted migration offer headers. This allows them to write files to arbitrary locations on the host system, potentially leading to host compromise, denial of service, or bypassing access controls.
- Requires control of a migration source.
- Triggered by unvalidated names in migration headers.
- Risk of arbitrary file writes and host compromise.
Live Threat
Current exploitation, exposure, and threat context
A path traversal vulnerability in Incus could allow a malicious migration peer to write arbitrary root-owned files to the host system when using dir storage pools. This may occur if an attacker controls a migration source and can manipulate unvalidated volume and snapshot names in the migration offer header.
- Arbitrary host files.
- Unvalidated migration data.
- Host system compromise.
Operational Fix
Recommended remediation, mitigation, and detection steps
The security of Incus systems relies on application owners and infrastructure teams to manage migration peer configurations and storage pool access. The immediate first step is to inventory all Incus instances, confirm exposure and criticality, and identify the accountable owner for each. Subsequent actions, including remediation planning, will depend on this initial assessment.
- Verify Incus instance inventory and exposure.
- Identify accountable owners for each instance.
- Plan remediation based on assessed risk.