{"id":"CVE-2026-35444","state":"PUBLISHED","title":"SDL_image has a heap buffer overflow READ via unchecked colormap index in XCF loader","description":"SDL_image is a library to load images of various formats as SDL surfaces. In do_layer_surface() in src/IMG_xcf.c, pixel index values from decoded XCF tile data are used directly as colormap indices without validating them against the colormap size (cm_num). A crafted .xcf file with a small colormap and out-of-range pixel indices causes heap out-of-bounds reads of up to 762 bytes past the colormap allocation. Both IMAGE_INDEXED code paths are affected (bpp=1 and bpp=2). The leaked heap bytes are written into the output surface pixel data, making them potentially observable in the rendered image. This vulnerability is fixed with commit 996bf12888925932daace576e09c3053410896f8.","publishedAt":"2026-04-06T21:44:05.986Z","updatedAt":"2026-04-08T14:06:28.528Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["libsdl-org SDL_image"],"affected":[{"vendor":"libsdl-org","product":"SDL_image","versions":[{"version":"< 996bf12888925932daace576e09c3053410896f8","status":"affected"}]}],"references":["https://github.com/libsdl-org/SDL_image/security/advisories/GHSA-gq8w-x74c-h6p7"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/35xxx/CVE-2026-35444.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-35444","state":"PUBLISHED","datePublished":"2026-04-06T21:44:05.986Z","dateUpdated":"2026-04-08T14:06:28.528Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-04-02T19:25:52.192Z"},"containers":{"cna":{"title":"SDL_image has a heap buffer overflow READ via unchecked colormap index in XCF loader","descriptions":[{"lang":"en","value":"SDL_image is a library to load images of various formats as SDL surfaces. In do_layer_surface() in src/IMG_xcf.c, pixel index values from decoded XCF tile data are used directly as colormap indices without validating them against the colormap size (cm_num). A crafted .xcf file with a small colormap and out-of-range pixel indices causes heap out-of-bounds reads of up to 762 bytes past the colormap allocation. Both IMAGE_INDEXED code paths are affected (bpp=1 and bpp=2). The leaked heap bytes are written into the output surface pixel data, making them potentially observable in the rendered image. This vulnerability is fixed with commit 996bf12888925932daace576e09c3053410896f8."}],"affected":[{"vendor":"libsdl-org","product":"SDL_image","versions":[{"version":"< 996bf12888925932daace576e09c3053410896f8","status":"affected"}]}],"references":[{"url":"https://github.com/libsdl-org/SDL_image/security/advisories/GHSA-gq8w-x74c-h6p7","name":"https://github.com/libsdl-org/SDL_image/security/advisories/GHSA-gq8w-x74c-h6p7","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","description":"CWE-125: Out-of-bounds Read","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-04-06T21:44:05.986Z"},"source":{"advisory":"GHSA-gq8w-x74c-h6p7","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-08T14:06:16.276801Z","id":"CVE-2026-35444","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-08T14:06:28.528Z"}}]}}}