{"vuln_id":"CVE-2026-28385","aliases":["GHSA-3gq2-x4qg-p4g6"],"description":"LXD: SSRF via image import from URL allows internal network probing by authenticated users","published_at":"2026-11-06T18:29:18Z","modified_at":"2026-11-23T20:41:36.108985Z","first_seen_at":"2026-11-23T21:06:31.525518Z","severity":"medium","severity_source":"native","cvss_score":5.0,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","cwe":["CWE-918"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00278,"epss_percentile":0.20458,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-28385"},"matched_alias":null,"items":[{"id":16676,"source":{"id":"osv","name":"OSV.dev"},"title":"GO-2026-6927: LXD: SSRF via image import from URL allows internal network probing by authenticated users in github.com/canonical/lxd","summary":"LXD: SSRF via image import from URL allows internal network probing by authenticated users in github.com/canonical/lxd\n\nAffected: Go:github.com/canonical/lxd\n\nFixed in: 0.0.0-20261005133302-c4a919f3f4e2\n\nReferences:\nhttps://github.com/canonical/lxd/security/advisories/GHSA-3gq2-x4qg-p4g6\nhttps://github.com/canonical/lxd/commit/08996fa031eebc2bc2f8e27148c2ba24386c01d0\nhttps://github.com/canonical/lxd/commit/4bbdb17ab67010446668e4b00a5175df5b6d55b4\nhttps://github.com/canonical/lxd/commit/5976c92117b79d73437d7fab55e34cb80083edff\nhttps://github.com/canonical/lxd/commit/886fcf5b7686bf59de78e239cec90a69e8fb9c65\nhttps://github.com/canonical/lxd/commit/c4a919f3f4e21249d535d4030a33484313026111\nhttps://github.com/canonical/lxd/pull/18210\nhttps://github.com/canonical/lxd/pull/18462","url":"https://osv.dev/vulnerability/GO-2026-6927","published_at":"2026-11-23T20:02:25Z","updated_at":"2026-11-23T20:30:11.283078Z","fetched_at":"2026-11-23T21:06:31.109666Z","severity":"medium","cvss_score":5.0,"epss":0.00278,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/canonical/lxd","vuln_id":"CVE-2026-28385","vuln_ids":["CVE-2026-28385","GHSA-3GQ2-X4QG-P4G6","GO-2026-6927"],"tags":["osv","go","fix-available"],"cluster_id":14709,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/16676","html":"https://vulnwatch.ve1ve2.com/item/16676"}},{"id":16557,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-3gq2-x4qg-p4g6: LXD: SSRF via image import from URL allows internal network probing by authenticated users","summary":"LXD: SSRF via image import from URL allows internal network probing by authenticated users\n\n## Summary\nThe LXD image import-from-URL endpoint (`POST /1.0/images` with `source.type=url`) makes server-side HTTP requests to an attacker-supplied URL without any private-IP or loopback blocking. An authenticated user with the `can_create_images` entitlement can force the LXD daemon to connect to internal network addresses (127.0.0.1, RFC1918 ranges, cloud metadata endpoints), enabling port scanning via error-based inference and interaction with internal HTTP services from the daemon's privileged network position.\n\n## Severity\n\n- **Attack Vector:** Network — LXD API is network-accessible.\n- **Attack Complexity:** Low — Single crafted API request with no special conditions.\n- **Privileges Required:** Low — Requires `can_create_images` entitlement, a non-admin permission commonly delegated to regular users.\n- **User Interaction:** None.\n- **Scope:** Changed — The attacker leverages LXD's privileged network position to probe and interact with internal services that are outside the attacker's direct network access and outside the scope of LXD's image management authorization.\n- **Confidentiality Impact:** Low — Error messages reveal internal port states (open/closed/filtered) and service availability. Response bodies from internal services are NOT returned to the attacker (hash validation blocks content exfiltration).\n- **Integrity Impact:** None — No demonstrated ability to modify data on internal services.\n- **Availability Impact:** None — No meaningful resource exhaustion or denial of service.\n\n## Affected Component\n- `lxd/images.go` — `imgPostURLInfo` (lines 668–755) — Makes HEAD request to user-supplied URL without any SSRF protections.\n- `lxd/util/http.go` — `HTTPClient` (lines 102–147) — Creates HTTP client with no IP blocking or URL validation.\n- `shared/network.go` — `RFC3493Dialer` (lines 20–49) — Dials arbitrary hosts including private/loopback ranges.\n- `lxd/daemon_images.go` — `ImageDownload` (lines 478–510, \"direct\" case) — Makes GET request to URL from attacker-controlled response header.\n\n## Description\n\n### Core vulnerability: no SSRF protections on server-side image fetching\n\nWhen a user imports an image from a URL, the `imgPostURLInfo` function makes an HTTP HEAD request directly to the user-supplied URL with zero validation:\n\n```go\n// lxd/images.go:668-703\nfunc imgPostURLInfo(ctx context.Context, s *state.State, req api.ImagesPost, ...) (*api.Image, error) {\n    if req.Source.URL == \"\" {\n        return nil, errors.New(\"Missing URL\")\n    }\n\n    myhttp, err := util.HTTPClient(\"\", s.Proxy)\n    // ...\n\n    // Resolve the image URL\n    head, err := http.NewRequest(\"HEAD\", req.Source.URL, nil)\n    // No URL validation, no scheme check, no IP range check\n    // ...\n\n    raw, err := myhttp.Do(head)  // Makes request to arbitrary destination\n```\n\nThe HTTP client is created via `util.HTTPClient` which uses `shared.RFC3493Dialer` — a standard dialer with zero private-IP filtering:\n\n```go\n// shared/network.go:20-49\nfunc RFC3493Dialer(conte\n\nAffected: Go:github.com/canonical/lxd\n\nFixed in: 0.0.0-20261005133302-c4a919f3f4e2\n\nReferences:\nhttps://github.com/canonical/lxd/security/advisories/GHSA-3gq2-x4qg-p4g6\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-28385\nhttps://github.com/canonical/lxd/pull/18210\nhttps://github.com/canonical/lxd/pull/18462\nhttps://github.com/canonical/lxd/commit/08996fa031eebc2bc2f8e27148c2ba24386c01d0\nhttps://github.com/canonical/lxd/commit/4bbdb17ab67010446668e4b00a5175df5b6d55b4\nhttps://github.com/canonical/lxd/commit/5976c92117b79d73437d7fab55e34cb80083edff\nhttps://github.com/canonical/lxd/commit/886fcf5b7686bf59de78e239cec90a69e8fb9c65","url":"https://osv.dev/vulnerability/GHSA-3gq2-x4qg-p4g6","published_at":"2026-11-06T18:29:18Z","updated_at":"2026-11-23T20:41:36.108985Z","fetched_at":"2026-11-23T21:06:31.109560Z","severity":"medium","cvss_score":5.0,"epss":0.00278,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/canonical/lxd","vuln_id":"CVE-2026-28385","vuln_ids":["CVE-2026-28385","GHSA-3GQ2-X4QG-P4G6","GO-2026-6927"],"tags":["osv","go","fix-available"],"cluster_id":14708,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/16557","html":"https://vulnwatch.ve1ve2.com/item/16557"}}]}