Skip to main content
VulnerabilityPublished

github.com/canonical/lxd · LXD has arbitrary file read+write on host via templates/ symlink in malicious image

Affects github.com/canonical/lxdSource GCVE Database

0

CVSS 9.9 Critical : upgrade to 0.0.0-20260203144152-d1c8ba15d160 as a priority.

Data as of 6 Nov 2026, 19:04 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-20260203144152-d1c8ba15d160
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-20260203144152-d1c8ba15d160.

Affected software

ProductAffectedFixed in
Gogithub.com/canonical/lxdAffected
  • <0.0.0-20260203144152-d1c8ba15d160
Fixed in
  • 0.0.0-20260203144152-d1c8ba15d160

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 in LXD version 0.0.0-20260203144152-d1c8ba15d160 that addresses this vulnerability. Users should upgrade to this fixed version to remediate the issue. No additional mitigation steps are indicated by the vendor advisory.

Description

A vulnerability in LXD allows a specially crafted container image to read and write arbitrary files on the host system by exploiting a symlink named 'templates' in the image. This can lead to arbitrary command execution on the host. The flaw arises because the tar extraction process does not reject a top-level 'templates' symlink, enabling access to host directories such as /etc/cron.d. A proof of concept demonstrates creating a cron job on the host via this method. The vulnerability is critical with a CVSS score of 9.9 and has been fixed in version 0.0.0-20260203144152-d1c8ba15d160.

References

Community reviews

Loading reviews…