All vulnerabilities

Servers and applications

CVE-2026-41648

Unbounded YAML Metadata Decode via Parsing

Severity
Medium 5.3
Published
30 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
7.0.0
Exploit chance
0.3% in the next 30 daysHigher than 19% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Allocation without limits (CWE-770)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Slow it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-67wx-r9xr-x75x
Sources
NVD, Project advisories (GitHub)

Description

User provided image and backup tarballs would be unpacked and YAML files parsed without any size restrictions. This was making it easy for an authenticated user to provide a crafted image or backup tarball that when parsed by Incus would lead to a very large YAML document being loaded into memory, potentially causing the entire server to run out of memory.

It was found that getImageMetadata and backup.GetInfo call yaml.NewDecoder(tr).Decode() directly on the tar reader without limiting how many bytes the YAML decoder can consume. The tar entry hdr.Size is not checked before decoding.

A tar archive can be crafted in which metadata.yaml or backup/index.yaml declares a large size in the tar header, causing the YAML decoder to read and allocate proportional memory on the server. The gopkg.in/yaml.v2 library mitigates YAML alias and anchor bombs, such as “billion laughs,” through its built-in excessive-aliasing check.

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-41648
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-41648
  • GitHub Advisory Database https://github.com/advisories/GHSA-67wx-r9xr-x75x
  • github.com https://github.com/lxc/incus/security/advisories/GHSA-67wx-r9xr-x75x