Incorrect Authorization Affecting github.com/canonical/lxd/lxd package, versions >=5.0.0 <5.0.7>=5.21.0 <5.21.5>=6.0.0 <6.9.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.63% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMCANONICALLXDLXD-17753824
  • published1 Jul 2026
  • disclosed26 Jun 2026
  • creditUnknown

Introduced: 26 Jun 2026

CVE-2026-9640  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade github.com/canonical/lxd/lxd to version 5.0.7, 5.21.5, 6.9.0 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization in the snapshot restoration process. An attacker can gain unauthorized root access on the host by importing a specially crafted instance backup containing restricted configuration keys within a snapshot, which are then applied to the live instance without proper policy validation.

CVSS Base Scores

version 4.0
version 3.1