In Canonical LXD versions 4.12 through 6.9, a Server-Side Request Forgery (SSRF) vulnerability in the image import functionality allows authenticated users with the can_create_images entitlement to interact with internal network infrastructure via the /images endpoint. When importing an image from a URL source, the LXD daemon fails to validate or restrict outbound destination IP addresses, allowing connections to loopback, RFC1918 private ranges, and cloud metadata endpoints. This enables error-based port scanning and unauthorized interaction with internal HTTP services from the daemon's network position.
https://github.com/canonical/lxd/security/advisories/GHSA-3gq2-x4qg-p4g6
https://github.com/canonical/lxd/releases/tag/lxd-6.9
https://github.com/canonical/lxd/pull/18462
https://github.com/canonical/lxd/pull/18210
https://github.com/canonical/lxd/commit/c4a919f3f4e21249d535d4030a33484313026111
https://github.com/canonical/lxd/commit/886fcf5b7686bf59de78e239cec90a69e8fb9c65
https://github.com/canonical/lxd/commit/5976c92117b79d73437d7fab55e34cb80083edff
https://github.com/canonical/lxd/commit/4bbdb17ab67010446668e4b00a5175df5b6d55b4
https://github.com/canonical/lxd/commit/08996fa031eebc2bc2f8e27148c2ba24386c01d0
https://github.com/canonical/lxd/blob/lxd-6.9/lxd/images.go
https://github.com/canonical/lxd/blob/lxd-6.9/lxd/daemon_images.go
https://github.com/canonical/lxd/blob/lxd-6.10.0/lxd/image_source_transitional.go