All vulnerabilities

Servers and applications

CVE-2026-41684

Nil Dereferences on Restore via Malformed YAML

Severity
Medium 6.5
Published
30 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
7.0.0
Exploit chance
0.4% in the next 30 daysHigher than 35% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Null pointer dereference (CWE-476)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Also known as
GHSA-x5r6-jr56-89pv
Sources
NVD, Project advisories (GitHub)

Description

It was found that backup.GetInfo() trusts the inline backup/index.yaml config when present and only falls back to parsing the legacy backup/container/backup.yaml file if result.Config == nil. As a result, an archive can carry a valid inline config that passes the initial import preflight while also carrying a malformed legacy backup/container/backup.yaml file that is reparsed later from the restored file system.

ParseConfigYamlFile() accepts YAML documents with no container section, and multiple downstream consumers then dereference .Container without checking for nil. Confirmed examples in the instance restore and import flow include backup.UpdateInstanceConfig() and internalImportFromBackup().

An authenticated user with permission to import instance backups may be able to crash the Incus daemon with a crafted backup archive whose inline backup/index.yaml is valid but whose extracted legacy backup.yaml omits container.

From lxc/incus's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
IncusServers and applications · cpe:a:linuxcontainers:incus
  • Every version before 7.0.0
IncusServers and applications · github:lxc/incus
  • Every version before 7.0.0

About Incus

container manager for system containers

From Wikidata, CC0 1.0.
GitHub stars
6,644GitHub, 15 Nov 2026
Forks
522GitHub, 15 Nov 2026
Latest release
v7.6.0GitHub, 15 Nov 2026
Released
30 Oct 2026GitHub
Developer
Linux ContainersWikidata
License
Apache Software License 2.0Wikidata
Written in
GoWikidata
First released
7 Aug 2023Wikidata
First published on GitHub
22 Jul 2023GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-41684
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-41684
  • GitHub Advisory Database https://github.com/advisories/GHSA-x5r6-jr56-89pv
  • github.com https://github.com/lxc/incus/security/advisories/GHSA-x5r6-jr56-89pv