GHSA-f6m5-xw2g-xc4x: Incus has an arbitrary file write on its client due to trusted image hash
An arbitrary file write vulnerability exists in the Incus client prior to version 7.2.0. This occurs when a malicious image server returns a crafted Incus-Image-Hash header containing path traversal sequences, allowing files to be written outside the intended directory. The vulnerability can lead to arbitrary command execution as root on the server due to the ability to write files such as cron jobs. The file is created and populated before the SHA-256 hash validation occurs, extending the window for exploitation. A proof-of-concept demonstrates how an attacker can exploit this by serving a malicious image with a crafted header and payload.
AI Analysis
Technical Summary
The Incus client (github.com/lxc/incus/v7/cmd/incusd) handles image downloads from URLs by first sending a HEAD request to the user-supplied URL and reading the Incus-Image-Hash header. This header is trusted as the expected fingerprint and used as a filename (alias) to create a file in the images directory. However, the hash value is not sanitized and can contain path traversal sequences (e.g., ../../../../etc/cron.d/incus-direct-image-url-rce), allowing arbitrary file writes outside the intended directory. The file is created and populated with the HTTP response before the SHA-256 hash validation is performed, enabling an attacker to write arbitrary files such as cron jobs that lead to root command execution. Cleanup routines run only after the copy completes, and a slow or held response extends the window for exploitation. This vulnerability is tracked as CVE-2026-48769 and affects versions prior to 7.2.0.
Potential Impact
An attacker controlling a malicious image server can exploit this vulnerability to write arbitrary files on the Incus client host with root privileges. This can lead to arbitrary command execution as root, compromising the entire system. The vulnerability allows path traversal in the filename used for storing downloaded images, enabling overwriting of critical system files such as cron jobs. This poses a critical security risk including full system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using untrusted image servers or URLs with the Incus client. Monitor vendor communications for updates on patches or official mitigations. Do not rely on the current hash validation as it occurs after the file write.
GHSA-f6m5-xw2g-xc4x: Incus has an arbitrary file write on its client due to trusted image hash
Description
An arbitrary file write vulnerability exists in the Incus client prior to version 7.2.0. This occurs when a malicious image server returns a crafted Incus-Image-Hash header containing path traversal sequences, allowing files to be written outside the intended directory. The vulnerability can lead to arbitrary command execution as root on the server due to the ability to write files such as cron jobs. The file is created and populated before the SHA-256 hash validation occurs, extending the window for exploitation. A proof-of-concept demonstrates how an attacker can exploit this by serving a malicious image with a crafted header and payload.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Incus client (github.com/lxc/incus/v7/cmd/incusd) handles image downloads from URLs by first sending a HEAD request to the user-supplied URL and reading the Incus-Image-Hash header. This header is trusted as the expected fingerprint and used as a filename (alias) to create a file in the images directory. However, the hash value is not sanitized and can contain path traversal sequences (e.g., ../../../../etc/cron.d/incus-direct-image-url-rce), allowing arbitrary file writes outside the intended directory. The file is created and populated with the HTTP response before the SHA-256 hash validation is performed, enabling an attacker to write arbitrary files such as cron jobs that lead to root command execution. Cleanup routines run only after the copy completes, and a slow or held response extends the window for exploitation. This vulnerability is tracked as CVE-2026-48769 and affects versions prior to 7.2.0.
Potential Impact
An attacker controlling a malicious image server can exploit this vulnerability to write arbitrary files on the Incus client host with root privileges. This can lead to arbitrary command execution as root, compromising the entire system. The vulnerability allows path traversal in the filename used for storing downloaded images, enabling overwriting of critical system files such as cron jobs. This poses a critical security risk including full system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using untrusted image servers or URLs with the Incus client. Monitor vendor communications for updates on patches or official mitigations. Do not rely on the current hash validation as it occurs after the file write.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-f6m5-xw2g-xc4x
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-48769"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 3.1
Threat ID: 6a3ef78c27e9c79719ff48f8
Added to database: 06/26/2026, 22:05:00 UTC
Last enriched: 06/26/2026, 22:15:25 UTC
Last updated: 06/26/2026, 22:15:25 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.