{"id":"CVE-2026-13705","aliases":["CVE-2026-13705"],"related":[],"kind":"vulnerability","state":"published","title":"Imager versions before 1.032 for Perl have a heap out-of-bounds read in the bundled Imager::File::SGI reader via a 16-bit RLE literal run in read_rgb_16_rle","summary":"Imager versions before 1.032 for Perl have a heap out-of-bounds read in the bundled Imager::File::SGI reader via a 16-bit RLE literal run in read_rgb_16_rle.\n\nread_rgb_16_rle guards each literal run with if (count > data_left), but count is a pixel count while every 16-bit sample consumes two bytes. The copy loop reads inp[0] * 256 + inp[1] and advances two bytes per pixel, so a run with data_left / 2 < count <= data_left passes the guard yet consumes 2 * count bytes and reads past the end of the buffer. The 8-bit path is unaffected because there one pixel is one byte.\n\nReading a crafted SGI image through Imager->read triggers the over-read before the parser rejects the malformed image, which can crash the process.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Imager versions before 1.032 for Perl have a heap out-of-bounds read in the bundled Imager::File::SGI reader via a 16-bit RLE literal run in read_rgb_16_rle.\n\nread_rgb_16_rle guards each literal run with if (count > data_left), but count is a pixel count while every 16-bit sample consumes two bytes. The copy loop reads inp[0] * 256 + inp[1] and advances two bytes per pixel, so a run with data_left / 2 < count <= data_left passes the guard yet consumes 2 * count bytes and reads past the end of the buffer. The 8-bit path is unaffected because there one pixel is one byte.\n\nReading a crafted SGI image through Imager->read triggers the over-read before the parser rejects the malformed image, which can crash the process.","source":"cvelist"},{"lang":"es","text":"Las versiones de Imager anteriores a la 1.032 para Perl tienen una lectura fuera de límites del montón en el lector Imager::File::SGI incluido, a través de una secuencia literal RLE de 16 bits en read_rgb_16_rle.\n\nread_rgb_16_rle protege cada secuencia literal con if (count > data_left), pero count es un recuento de píxeles mientras que cada muestra de 16 bits consume dos bytes. El bucle de copia lee inp[0] * 256 + inp[1] y avanza dos bytes por píxel, por lo que una secuencia con data_left / 2 < count <= data_left pasa la protección pero consume 2 * count bytes y lee más allá del final del búfer. La ruta de 8 bits no se ve afectada porque allí un píxel es un byte.\n\nLa lectura de una imagen SGI manipulada a través de Imager  ->  read desencadena la sobrerelectura antes de que el analizador rechace la imagen malformada, lo que puede bloquear el proceso.","source":"nvd"}],"published":"2026-07-06T12:03:38.513Z","modified":"2026-10-25T20:10:00.147Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"1.032","status":"affected"}],"vendor":"TONYC","product":"Imager","package":"Imager","repo":"https://github.com/tonycoz/imager","source":"cvelist"}],"references":[{"url":"https://github.com/tonycoz/imager/commit/f28de02770dfc26ffbdc32048970ed84babbf730.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TONYC/Imager-1.032/source/Changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/07/06/3","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-06T19:24:34.960Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-13705","url":"https://www.cve.org/CVERecord?id=CVE-2026-13705","licence":"CVE Terms of Use","modified":"2026-07-06T19:24:38.327Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-13705","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-13705","licence":"Public domain","modified":"2026-10-25T20:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:27.226Z","epss":{"score":0.00136,"percentile":0.03239,"date":"2026-12-01T12:00:22.000Z"}}