Skip to main content
VulnerabilityPublished

github.com/canonical/lxd · LXD has arbitrary file write on client due to trusted image hash

Affects github.com/canonical/lxdSource GCVE Database

0

CVSS 9.9 Critical : upgrade to 0.0.0-20260630083100-c5184be310b1 as a priority.

Data as of 6 Nov 2026, 20:32 UTC

CVSS 3.1 base score
9.9Critical
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 0.0.0-20260630083100-c5184be310b1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

What to do

Upgrade github.com/canonical/lxd to 0.0.0-20260630083100-c5184be310b1.

Affected software

ProductAffectedFixed in
Gogithub.com/canonical/lxdAffected
  • <0.0.0-20260630083100-c5184be310b1
Fixed in
  • 0.0.0-20260630083100-c5184be310b1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available and fixed in version 0.0.0-20260630083100-c5184be310b1. Users should upgrade to this fixed version to remediate the vulnerability. No other mitigations are indicated or required once patched.

Description

A critical arbitrary file write vulnerability exists in the Incus (LXD) client when it processes a malicious image server's crafted Incus-Image-Hash header. This flaw allows an attacker to write files to arbitrary locations on the server filesystem, potentially leading to root command execution. The vulnerability arises because the client trusts the Incus-Image-Hash header before validating the downloaded image's SHA-256 hash, enabling directory traversal attacks. A proof-of-concept demonstrates writing to /etc/cron.d to achieve remote code execution. This issue is fixed in version 0.0.0-20260630083100-c5184be310b1.

References

Community reviews

Loading reviews…