GHSA-83xr-5xxr-mh92

Suggest an improvement
Source
https://github.com/advisories/GHSA-83xr-5xxr-mh92
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-83xr-5xxr-mh92/GHSA-83xr-5xxr-mh92.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-83xr-5xxr-mh92
Aliases
Published
2026-03-27T17:17:03Z
Modified
2026-04-07T15:26:24Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Incus vulnerable to arbitrary file read and write through pongo templates
Details

Summary

Instance template files can be used to cause arbitrary read or writes as root on the host server.

Details

Incus allows for pongo2 templates within instances which can be used at various times in the instance lifecycle to template files inside of the instance. This particular implementation of pongo2 within Incus allowed for file read/write but with the expectation that the pongo2 chroot feature would isolate all such access to the instance's filesystem.

This was allowed such that a template could theoretically read a file and then generate a new version of said file.

Unfortunately the chroot isolation mechanism is entirely skipped by pongo2 leading to easy access to the entire system's filesystem with root privileges.

Credit

This issue was discovered and reported by the team at 7asecurity

Database specific
{
    "cwe_ids":  [
        "CWE-1336"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-03-27T17:17:03Z",
    "nvd_published_at":  "2026-03-26T23:16:20Z",
    "severity":  "CRITICAL"
}
References

Affected packages

Go / github.com/lxc/incus/v6

Package

Name
github.com/lxc/incus/v6
View open source insights on deps.dev
Purl
pkg:golang/github.com/lxc/incus/v6

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
6.23.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-83xr-5xxr-mh92/GHSA-83xr-5xxr-mh92.json"

Go / github.com/lxc/incus

Package

Name
github.com/lxc/incus
View open source insights on deps.dev
Purl
pkg:golang/github.com/lxc/incus

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
0.7.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-83xr-5xxr-mh92/GHSA-83xr-5xxr-mh92.json"