{"id":"UBUNTU-CVE-2026-93018","details":"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. The 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. i_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. Reading an attacker-supplied image through Imager-\u003eread() and then fetching its pixels or converting it to RGB discloses process heap memory.","modified":"2026-09-21T21:40:55.963481126Z","published":"2026-09-21T00:00:00Z","upstream":["CVE-2026-93018"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-93018"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-93018"},{"type":"REPORT","url":"https://lists.security.metacpan.org/cve-announce/msg/43654795/"},{"type":"REPORT","url":"https://github.com/tonycoz/imager/security/advisories/GHSA-j7v7-cm4g-vrgf"},{"type":"REPORT","url":"https://github.com/tonycoz/imager/commit/dcf0a52e2732399d42ab44d98af6934658d068ee.patch"},{"type":"REPORT","url":"https://metacpan.org/release/TONYC/Imager-1.036/changes"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2026/09/18/8"}],"affected":[{"package":{"name":"libimager-perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libimager-perl?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.003+dfsg-1","1.004+dfsg-1","1.004+dfsg-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libimager-perl","binary_version":"1.004+dfsg-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-93018.json"}},{"package":{"name":"libimager-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libimager-perl?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.005+dfsg-2build1","1.006+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libimager-perl","binary_version":"1.006+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-93018.json"}},{"package":{"name":"libimager-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libimager-perl?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.011+dfsg-1","1.011+dfsg-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.011+dfsg-1build1","binary_name":"libimager-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-93018.json"}},{"package":{"name":"libimager-perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libimager-perl?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.012+dfsg-1build1","1.012+dfsg-2","1.012+dfsg-2build1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.012+dfsg-2build1","binary_name":"libimager-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-93018.json"}},{"package":{"name":"libimager-perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libimager-perl?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.019+dfsg-2","1.020+dfsg-1","1.022+dfsg-1","1.023+dfsg-1","1.023+dfsg-1build1","1.023+dfsg-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"libimager-perl","binary_version":"1.023+dfsg-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-93018.json"}},{"package":{"name":"libimager-perl","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libimager-perl?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.027+dfsg-1","1.029+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libimager-perl","binary_version":"1.029+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-93018.json"}}],"schema_version":"1.9.0","severity":[{"type":"Ubuntu","score":"medium"}]}