{"id":"CVE-2026-13705","sourceIdentifier":"9b29abf9-4ab0-4765-b253-1875cd9b441e","published":"2026-07-06T13:16:32.447","lastModified":"2026-10-25T20:10:00.147","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"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."}],"affected":[{"source":"9b29abf9-4ab0-4765-b253-1875cd9b441e","affectedData":[{"vendor":"TONYC","product":"Imager","defaultStatus":"unaffected","collectionURL":"https://cpan.org/modules","packageName":"Imager","programFiles":["SGI/imsgi.c"],"programRoutines":[{"name":"read_rgb_16_rle"}],"repo":"https://github.com/tonycoz/imager","versions":[{"version":"0","lessThan":"1.032","versionType":"custom","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.2}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-07-06T19:24:34.960922Z","id":"CVE-2026-13705","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"9b29abf9-4ab0-4765-b253-1875cd9b441e","type":"Secondary","description":[{"lang":"en","value":"CWE-125"}]}],"references":[{"url":"https://github.com/tonycoz/imager/commit/f28de02770dfc26ffbdc32048970ed84babbf730.patch","source":"9b29abf9-4ab0-4765-b253-1875cd9b441e"},{"url":"https://metacpan.org/release/TONYC/Imager-1.032/source/Changes","source":"9b29abf9-4ab0-4765-b253-1875cd9b441e"},{"url":"http://www.openwall.com/lists/oss-security/2026/07/06/3","source":"af854a3a-2127-422b-91ae-364da2661108"}]}