# CVE-2026-62313: Incus: Project restriction `restricted.containers.privilege=isolated` bypassable by omitting `security.idmap.isolated`

> Attackers can bypass tenant isolation restrictions in Incus by omitting a specific configuration key, allowing shared host ID maps and weakening container isolation.

- **Severity:** Medium 4.3 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 21 Aug 2026
- **Updated:** 26 Aug 2026
- **Also known as:** DEBIAN-CVE-2026-62313, GHSA-53cg-qvg7-m8vg, UBUNTU-CVE-2026-62313

## What is CVE-2026-62313?

CVE-2026-62313 is a medium-severity vulnerability in lxc incus, published on 21 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

Incus is a system container and virtual machine manager. Prior to version 7.3.0, project-level enforcement of `restricted.containers.privilege=isolated` can be trivially bypassed, allowing a user to create a non-isolated (shared host idmap) container in a project that is configured to forbid them. The restriction only rejects an explicitly set `security.idmap.isolated=false` (or empty) and fails to enforce anything when the key is omitted entirely. Because an unset `security.idmap.isolated` defaults to `false` (non-isolation), a user simply leaves the key out and obtains exactly the container state the restriction is meant to forbid. This defeats the tenant-isolation guarantee the restriction exists to provide. Containers in the project share the host uid/gid map instead of receiving unique, non-overlapping ranges, weakening the isolation boundary between co-tenant containers and the host. Version 7.3.0 patches the issue.

Weakness: CWE-863 (Incorrect Authorization)

## Which versions are affected by CVE-2026-62313?


## How do I fix CVE-2026-62313?

Upgrade to a fixed version.

## Is CVE-2026-62313 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-62313 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-62313 and fix it if it is affected.

What it is: CVE-2026-62313 is a medium-severity vulnerability in lxc incus, published on 21 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-62313 exists.

Affected product: lxc incus. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-62313/ (Markdown: https://insights.sbomify.com/CVE-2026-62313/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-62313
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-62313
- OSV: https://osv.dev/vulnerability/CVE-2026-62313

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-62313/
Summaries are generated and may contain mistakes; the official description above is the record.
