GHSA-vxp5-584q-c479: Incus has arbitrary file read+write on host via templates/ symlink in malicious image
A vulnerability in Incus (github.com/lxc/incus/v7/cmd/incusd) allows a specially crafted container image or instance backup containing a top-level 'templates' symlink to arbitrary file read and write on the host system. This occurs because the tar extraction process does not reject a top-level 'templates' symlink, enabling attackers to map host directories and modify files such as cron jobs, potentially leading to arbitrary command execution. The issue affects versions prior to 7.2.0.
AI Analysis
Technical Summary
Incus improperly handles a top-level 'templates' symlink during image unpacking and instance backup restoration. The archive unpacking code excludes device nodes but does not reject a 'templates' symlink, and the backup restore uses rsync without the '--safe-links' option. This allows a malicious image or backup to map host directories (e.g., /etc/cron.d) via the 'templates' symlink, enabling arbitrary file read and write on the host. Proof-of-concept demonstrates creating cron jobs that execute commands as root on the host.
Potential Impact
An attacker able to import a crafted container image or instance backup can read and write arbitrary files on the host system, including sensitive configuration files. This can lead to privilege escalation and arbitrary command execution with root privileges on the host, posing a critical security risk.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid importing untrusted container images or instance backups that may contain malicious symlinks. Monitor vendor communications for updates and apply patches promptly once released.
GHSA-vxp5-584q-c479: Incus has arbitrary file read+write on host via templates/ symlink in malicious image
Description
A vulnerability in Incus (github.com/lxc/incus/v7/cmd/incusd) allows a specially crafted container image or instance backup containing a top-level 'templates' symlink to arbitrary file read and write on the host system. This occurs because the tar extraction process does not reject a top-level 'templates' symlink, enabling attackers to map host directories and modify files such as cron jobs, potentially leading to arbitrary command execution. The issue affects versions prior to 7.2.0.
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
Incus improperly handles a top-level 'templates' symlink during image unpacking and instance backup restoration. The archive unpacking code excludes device nodes but does not reject a 'templates' symlink, and the backup restore uses rsync without the '--safe-links' option. This allows a malicious image or backup to map host directories (e.g., /etc/cron.d) via the 'templates' symlink, enabling arbitrary file read and write on the host. Proof-of-concept demonstrates creating cron jobs that execute commands as root on the host.
Potential Impact
An attacker able to import a crafted container image or instance backup can read and write arbitrary files on the host system, including sensitive configuration files. This can lead to privilege escalation and arbitrary command execution with root privileges on the host, posing a critical security risk.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid importing untrusted container images or instance backups that may contain malicious symlinks. Monitor vendor communications for updates and apply patches promptly once released.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-vxp5-584q-c479
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-48752"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 3.1
Threat ID: 6a3ef78d27e9c79719ff4978
Added to database: 06/26/2026, 22:05:01 UTC
Last enriched: 06/26/2026, 22:16:07 UTC
Last updated: 06/26/2026, 22:16:07 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.