Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-f6m5-xw2g-xc4x: Incus has an arbitrary file write on its client due to trusted image hash

0
Critical
Published: 06/26/2026 (06/26/2026, 19:13:18 UTC)
Source: GCVE Database
Product: github.com/lxc/incus/v7/cmd/incusd

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected software

Goghsa
github.com/lxc/incus/v7/cmd/incusd
Affected versions
<7.2.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/26/2026, 22:15:25 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses