{"id":"CVE-2026-93018","state":"PUBLISHED","title":"Imager versions before 1.036 for Perl disclose uninitialised heap memory reading a paletted image with pixel indexes past its colour map in i_gpix_p and i_glin_p","description":"Imager versions before 1.036 for Perl disclose uninitialised heap memory reading a paletted image with pixel indexes past its colour map in i_gpix_p and i_glin_p.\n\nThe palette is allocated uninitialised, and only the entries a reader adds count as populated. The TGA reader stores pixel indexes without checking them against the colour map. i_gpix_p() rejects only an index greater than the count, so an index equal to it reads the first unpopulated entry, and getpixel() returns it.\n\ni_glin_p() skips any index at or beyond the count without writing that pixel to the caller's buffer. The palette-to-RGB conversion reads each row through an uninitialised buffer, so those pixels of the converted image hold prior heap contents.\n\nReading an attacker-supplied image through Imager->read() and then fetching its pixels or converting it to RGB discloses process heap memory.","publishedAt":"2026-09-18T13:57:37.837Z","updatedAt":"2026-09-22T18:27:38.610Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","source":"CISA-ADP"},"assigner":"CPANSec","products":["Imager"],"affected":[{"packageName":"Imager","packageURL":"pkg:cpan/Imager","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.036","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["Imager"],"programFiles":["palimg.c"],"programRoutines":[{"name":"i_gpix_p"},{"name":"i_glin_p"}],"repo":"https://github.com/tonycoz/imager"}],"references":["https://github.com/tonycoz/imager/security/advisories/GHSA-j7v7-cm4g-vrgf","https://github.com/tonycoz/imager/commit/dcf0a52e2732399d42ab44d98af6934658d068ee.patch","https://metacpan.org/release/TONYC/Imager-1.036/changes","http://www.openwall.com/lists/oss-security/2026/09/18/8"],"weaknesses":["CWE-908","CWE-193"],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/93xxx/CVE-2026-93018.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-93018","state":"PUBLISHED","datePublished":"2026-09-18T13:57:37.837Z","dateUpdated":"2026-09-22T18:27:38.610Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-09-17T14:56:50.796Z"},"containers":{"cna":{"title":"Imager versions before 1.036 for Perl disclose uninitialised heap memory reading a paletted image with pixel indexes past its colour map in i_gpix_p and i_glin_p","descriptions":[{"lang":"en","value":"Imager versions before 1.036 for Perl disclose uninitialised heap memory reading a paletted image with pixel indexes past its colour map in i_gpix_p and i_glin_p.\n\nThe palette is allocated uninitialised, and only the entries a reader adds count as populated. The TGA reader stores pixel indexes without checking them against the colour map. i_gpix_p() rejects only an index greater than the count, so an index equal to it reads the first unpopulated entry, and getpixel() returns it.\n\ni_glin_p() skips any index at or beyond the count without writing that pixel to the caller's buffer. The palette-to-RGB conversion reads each row through an uninitialised buffer, so those pixels of the converted image hold prior heap contents.\n\nReading an attacker-supplied image through Imager->read() and then fetching its pixels or converting it to RGB discloses process heap memory."}],"affected":[{"packageName":"Imager","packageURL":"pkg:cpan/Imager","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.036","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["Imager"],"programFiles":["palimg.c"],"programRoutines":[{"name":"i_gpix_p"},{"name":"i_glin_p"}],"repo":"https://github.com/tonycoz/imager"}],"references":[{"url":"https://github.com/tonycoz/imager/security/advisories/GHSA-j7v7-cm4g-vrgf","tags":["vendor-advisory"]},{"url":"https://github.com/tonycoz/imager/commit/dcf0a52e2732399d42ab44d98af6934658d068ee.patch","tags":["patch"]},{"url":"https://metacpan.org/release/TONYC/Imager-1.036/changes","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-908","description":"CWE-908 Use of Uninitialized Resource","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-193","description":"CWE-193 Off-by-one Error","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-09-18T13:57:37.837Z"},"credits":[{"lang":"en","type":"finder","value":"router0mail"}],"solutions":[{"lang":"en","value":"Upgrade to Imager 1.036 or later."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2026-09-18T00:00:00.000Z","value":"Version 1.036 released with fix."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/09/18/8"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-09-18T17:06:58.132Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","integrityImpact":"NONE","userInteraction":"REQUIRED","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-09-22T18:14:30.766435Z","id":"CVE-2026-93018","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-09-22T18:27:38.610Z"}}]}}}