Security mailing lists by PureSourceCode

CVE-2026-66897

CRITICAL 9.9CVSS 3.1

A path traversal vulnerability in LXD's instance template processing allows an attacker with container edit permissions, or any user launching a crafted image, to overwrite arbitrary files on the host system as root. When processing target template paths specified in metadata.yaml, LXD validates the path against a confined os.Root directory handle but subsequently opens and creates the file using os.Create with an unconfined string path. This discrepancy between path resolution checks and file creation allows an attacker to escape directory confinement, overwrite root-owned host files, and achieve host root code execution.

Published
24 Aug 2026
Last modified
24 Oct 2026
Assigned by
security@ubuntu.com
NVD status
Analyzed
Weakness
CWE-22
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security@ubuntu.com (Secondary) CVSS 3.1 CRITICAL 9.9 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD canonical lxd
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*
< 4.0.13 4.0.13
NVD canonical lxd
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*
>= 5.0.0, < 5.0.9 5.0.9
NVD canonical lxd
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*
>= 5.1, < 5.21.7 5.21.7
NVD canonical lxd
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*
>= 6.0, <= 6.9

References

History

  • 25 Nov 2026 21:04 UTC · NVD: first stored (published 24 Aug 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.