{"id":"GHSA-67wx-r9xr-x75x","revision":null,"records":[{"revision":"9510a8d62a8449d19ef3ea3552e17cde","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-41648","aliases":[],"title":"Incus: Unbounded YAML Metadata Decode via Parsing","description":"Incus is a system container and virtual machine manager. Prior to version 7.0.0, 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. This issue has been patched in version 7.0.0.","state":0,"publishedAt":"2026-05-07T13:05:42.479+00:00","modifiedAt":"2026-05-07T15:11:42.272+00:00","affected":[{"ecosystem":"Vendor product","name":"incus","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"lxc\",\n                    \"product\": \"incus\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 7.0.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","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","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/lxc/incus/security/advisories/GHSA-67wx-r9xr-x75x","https://github.com/lxc/incus/releases/tag/v7.0.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-41648","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-41648","identifiers":["CVE-2026-41648"]},"retained":false,"historicalAffected":[]},{"revision":"ad679fed410a483b8c9c71526d14d3bf","observedAt":"2026-11-01T07:10:22.953+00:00","statement":{"source":"euvd","id":"EUVD-2026-28372","aliases":["CVE-2026-41648","GHSA-67wx-r9xr-x75x"],"title":"Incus is a system container and virtual machine manager. Prior to version 7.0.0, 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 use…","description":"Incus is a system container and virtual machine manager. Prior to version 7.0.0, 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. This issue has been patched in version 7.0.0.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","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","score":5.3,"severity":null}],"references":["https://github.com/lxc/incus/security/advisories/GHSA-67wx-r9xr-x75x","https://github.com/lxc/incus/releases/tag/v7.0.0"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-28372","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 7, 2026, 1:05:42 PM","dateUpdated":"May 7, 2026, 3:11:42 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-28372","identifiers":["EUVD-2026-28372","CVE-2026-41648","GHSA-67wx-r9xr-x75x"]},"retained":false,"historicalAffected":[]},{"revision":"a6dc3dc146da49e691bfca627eafb356","observedAt":"2026-10-27T10:10:19.004+00:00","statement":{"source":"nvd","id":"CVE-2026-41648","aliases":[],"title":"Incus is a system container and virtual machine manager. Prior to version 7.0.0, 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 use…","description":"Incus is a system container and virtual machine manager. Prior to version 7.0.0, 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. This issue has been patched in version 7.0.0.","state":0,"publishedAt":"2026-05-07T14:16:03.2+00:00","modifiedAt":"2026-10-26T22:10:00.163+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · security-advisories@github.com · Secondary","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","score":5.3,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L","score":5,"severity":"MEDIUM"}],"references":["https://github.com/lxc/incus/releases/tag/v7.0.0","https://github.com/lxc/incus/security/advisories/GHSA-67wx-r9xr-x75x"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-41648","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-770"],"productCriteria":["cpe:2.3:a:linuxcontainers:incus:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-05-07T14:16:03.200","lastModified":"2026-10-26T22:10:00.163"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-41648","identifiers":["CVE-2026-41648"]},"retained":false,"historicalAffected":[]},{"revision":"516bcd7c33af4a5b9933cef5dd384d4f","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-67wx-r9xr-x75x","aliases":["CVE-2026-41648","GO-2026-5168"],"title":"Incus has Unbounded YAML Metadata Decode via Parsing","description":"### Summary\nUser 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.\n\n### Details\nIt 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.\n\nA 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. However, large flat YAML documents with many keys or long string values can still produce linear but amplified memory consumption of approximately 5x to 6x the input size.\n\nA 200 MB tar entry for metadata.yaml may cause approximately 1.2 GB of heap allocations during decode, which may be sufficient to trigger an out-of-memory condition on a constrained daemon or significantly degrade service. Because the decode occurs in the daemon process, excessive garbage-collection pressure can affect concurrent operations. Appropriate API permissions are required to upload an image or backup archive.\n\nMitigating factors include the fact that the amplification is linear rather than exponential, at approximately 5x to 6x, and that upload bandwidth is the practical bottleneck for delivering large payloads.\n\nAffected Files:\n - https://github.com/lxc/incus/blob/v6.22.0/cmd/incusd/images.go#L1456\n - https://github.com/lxc/incus/blob/v6.22.0/internal/server/backup/backup_info.go#L87\n - https://github.com/lxc/incus/blob/v6.22.0/internal/server/backup/backup_info.go#L115\n\nImage metadata parsing reads YAML directly from the tar stream:\nAffected Code:\n```\nif hdr.Name == \"metadata.yaml\" || hdr.Name == \"./metadata.yaml\" {\n    err = yaml.NewDecoder(tr).Decode(&result)\n```\n\nBackup info parsing does the same:\n\nAffected Code:\n```\nif hdr.Name == backupIndexPath {\n    err = yaml.NewDecoder(tr).Decode(&result)\n\nif result.Config == nil && hdr.Name == \"backup/container/backup.yaml\" {\n    err = yaml.NewDecoder(tr).Decode(&result.Config)\n```\n\nThis was confirmed as follows:\n\nCommand:\n```\ngo test ./test/fuzz -run='TestUnboundedYAMLMetadataDecode' -count=1 -v\n```\n\nOutput:\n```\n=== RUN   TestUnboundedYAMLMetadataDecode\n   image_metadata_poc_test.go:80: metadata.yaml size: 10.2 MB\n   image_metadata_poc_test.go:113: metadata.yaml hdr.Size = 10688940 bytes (10.2 MB) -- no size\n       check exists in getImageMetadata before yaml.NewDecoder(tr).Decode()\n   image_metadata_poc_test.go:124: decoded 50000 properties from 10.2 MB metadata.yaml\n   image_metadata_poc_test.go:125: yaml.NewDecoder(tr).Decode() accepted 10.2 MB metadata.yaml\n       with 50000 properties -- no hdr.Size check or io.LimitReader in images.go:1457 or\n       backup_info.go:88\n--- FAIL: TestUnboundedYAMLMetadataDecode (0.11s)\nFAIL\n```\n\nIt is recommended to add a size check on hdr.Size before YAML decoding and to wrap the tar reader in io.LimitReader.\n\nProposed Fix:\n```\nconst maxMetadataSize = 1 << 20 // 1 MB\n\nif hdr.Size > maxMetadataSize {\n    return nil, fmt.Errorf(\"metadata entry too large: %d bytes\", hdr.Size)\n}\n\nerr = yaml.NewDecoder(io.LimitReader(tr, maxMetadataSize)).Decode(&result)\n```\n\nA patch is available at https://github.com/lxc/incus/releases/tag/v7.0.0.\n\n### Credit\nThis issue was discovered and reported by the team at 7asecurity (https://7asecurity.com/)","state":0,"publishedAt":"2026-05-04T19:44:24+00:00","modifiedAt":"2026-06-25T18:56:08.3409115+00:00","affected":[{"ecosystem":"Go","name":"github.com/lxc/incus/v6/cmd/incusd","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"6.23.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L","score":null,"severity":null},{"system":"CVSS_V4","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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/lxc/incus/security/advisories/GHSA-67wx-r9xr-x75x","https://nvd.nist.gov/vuln/detail/CVE-2026-41648","https://github.com/lxc/incus","https://github.com/lxc/incus/releases/tag/v7.0.0"],"sourceUrl":"https://github.com/advisories/GHSA-67wx-r9xr-x75x","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-67wx-r9xr-x75x","identifiers":["GHSA-67wx-r9xr-x75x","CVE-2026-41648","GO-2026-5168"]},"retained":false,"historicalAffected":[]},{"revision":"8f405f33d6b54b789dc0ed6ccd514e51","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5168","aliases":["CVE-2026-41648","GHSA-67wx-r9xr-x75x"],"title":"Incus has Unbounded YAML Metadata Decode via Parsing in github.com/lxc/incus","description":"Incus has Unbounded YAML Metadata Decode via Parsing in github.com/lxc/incus","state":0,"publishedAt":"2026-06-25T18:26:48+00:00","modifiedAt":"2026-06-25T18:45:19.4836151+00:00","affected":[{"ecosystem":"Go","name":"github.com/lxc/incus","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/lxc/incus/v6","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/lxc/incus/security/advisories/GHSA-67wx-r9xr-x75x","https://nvd.nist.gov/vuln/detail/CVE-2026-41648","https://github.com/lxc/incus/releases/tag/v7.0.0"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5168","license":"OSV · upstream source license applies","key":"osv:GO-2026-5168","identifiers":["GO-2026-5168","CVE-2026-41648","GHSA-67wx-r9xr-x75x"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-01T18:59:18.6323245+00:00","complete":true,"records":1766,"lastAttemptAt":"2026-11-01T18:59:18.6323245+00:00","lastSuccessAt":"2026-11-01T18:59:18.7792422+00:00","error":null,"lastVerifiedAt":"2026-11-01T18:59:18.7792431+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-aece262bb10a694367a43c24d730aa8e8dc171723eaec4c15cdd32f04bda103f-d5c3ebbfb28a03509d20973fbb2330bc7b9e252e9828be2e66ae9aea69b49ce1","complete":true,"records":417669,"lastAttemptAt":"2026-11-01T18:57:22.5530729+00:00","lastSuccessAt":"2026-11-01T18:57:22.2751752+00:00","error":null,"lastVerifiedAt":"2026-11-01T18:57:22.5530729+00:00","snapshotPublishedAt":"2026-11-01T18:27:50+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-35b3277f93af45a38903f87f33008ff6","complete":false,"records":13568,"lastAttemptAt":"2026-11-01T18:09:13.7653963+00:00","lastSuccessAt":"2026-11-01T18:09:13.759+00:00","error":null,"lastVerifiedAt":"2026-11-01T18:09:13.759+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13449,"expectedIdentifiers":13637,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-01T18:59:18.6323245+00:00","complete":true,"records":1095,"lastAttemptAt":"2026-11-01T18:59:18.6323245+00:00","lastSuccessAt":"2026-11-01T18:59:18.7802935+00:00","error":null,"lastVerifiedAt":"2026-11-01T18:59:18.7802939+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-474b86a92ed642ad898325111b834ed8","complete":false,"records":13580,"lastAttemptAt":"2026-11-01T18:59:19.9288181+00:00","lastSuccessAt":"2026-11-01T18:59:20.0411387+00:00","error":null,"lastVerifiedAt":"2026-11-01T18:59:20.0411387+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-21dcd6662970dfea02e4ea60ee637115e8d92664947484d2b9276b3f6568a84f","complete":true,"records":9815,"lastAttemptAt":"2026-11-01T18:59:18.2008199+00:00","lastSuccessAt":"2026-10-30T23:47:34.1817587+00:00","error":null,"lastVerifiedAt":"2026-11-01T18:59:18.2008199+00:00","snapshotPublishedAt":"2026-10-30T23:33:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-2de9ccc5290f060c7aa63f89c25dd76f655a64ba1aba7c05c97fa3bee4f09899","complete":true,"records":1967,"lastAttemptAt":"2026-11-01T18:57:22.7482139+00:00","lastSuccessAt":"2026-10-28T20:55:34.2982937+00:00","error":null,"lastVerifiedAt":"2026-11-01T18:57:22.7482139+00:00","snapshotPublishedAt":"2026-10-28T20:03:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-f95f76cd406ae5bae3de632ad37fd2d5160b44f5e6b51748ac6f8f0c0c88e72b","complete":true,"records":3028,"lastAttemptAt":"2026-11-01T18:59:18.5964346+00:00","lastSuccessAt":"2026-10-30T23:47:38.4914494+00:00","error":null,"lastVerifiedAt":"2026-11-01T18:59:18.5964346+00:00","snapshotPublishedAt":"2026-10-30T23:18:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-bae764feb2958301aebe6a33f5d201cbcbcd6b276360ea18192571b93d9eadc5","complete":true,"records":230997,"lastAttemptAt":"2026-11-01T18:59:18.0581223+00:00","lastSuccessAt":"2026-11-01T18:59:16.6296854+00:00","error":null,"lastVerifiedAt":"2026-11-01T18:59:18.0581223+00:00","snapshotPublishedAt":"2026-11-01T18:18:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}