{"id":"CVE-2026-13708","aliases":["CVE-2026-13708"],"related":[],"kind":"vulnerability","state":"published","title":"Imager::File::JPEG versions before 1.003 for Perl leak heap memory when reading a JPEG with repeated APP13 markers in i_readjpeg_wiol","summary":"Imager::File::JPEG versions before 1.003 for Perl leak heap memory when reading a JPEG with repeated APP13 markers in i_readjpeg_wiol.\n\ni_readjpeg_wiol walks the marker list libjpeg returns and, for each APP13 marker, allocates a new buffer with *iptc_itext = mymalloc(...) and overwrites the previous pointer without freeing it. Only the final payload is later turned into a Perl scalar and freed, so a JPEG with N such markers leaks the first N-1 payloads on every read.\n\nIn a long-lived process, such as an upload or thumbnailing service, repeated reads accumulate these leaks and exhaust available memory, a denial of service.\n\nThe same handler ships bundled in the Imager distribution, where versions before 1.032 are affected and the fix ships in 1.032.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Imager::File::JPEG versions before 1.003 for Perl leak heap memory when reading a JPEG with repeated APP13 markers in i_readjpeg_wiol.\n\ni_readjpeg_wiol walks the marker list libjpeg returns and, for each APP13 marker, allocates a new buffer with *iptc_itext = mymalloc(...) and overwrites the previous pointer without freeing it. Only the final payload is later turned into a Perl scalar and freed, so a JPEG with N such markers leaks the first N-1 payloads on every read.\n\nIn a long-lived process, such as an upload or thumbnailing service, repeated reads accumulate these leaks and exhaust available memory, a denial of service.\n\nThe same handler ships bundled in the Imager distribution, where versions before 1.032 are affected and the fix ships in 1.032.","source":"cvelist"},{"lang":"es","text":"Las versiones de Imager::File::JPEG anteriores a la 1.003 para Perl fugan memoria del heap al leer un JPEG con marcadores APP13 repetidos en i_readjpeg_wiol.\n\ni_readjpeg_wiol recorre la lista de marcadores que devuelve libjpeg y, para cada marcador APP13, asigna un nuevo búfer con iptc_itext = mymalloc(...) y sobrescribe el puntero anterior sin liberarlo. Solo la carga útil final se convierte posteriormente en un escalar de Perl y se libera, por lo que un JPEG con N de estos marcadores fuga las primeras N-1 cargas útiles en cada lectura.\n\nEn un proceso de larga duración, como un servicio de carga o de creación de miniaturas, las lecturas repetidas acumulan estas fugas y agotan la memoria disponible, una denegación de servicio.\n\nEl mismo gestor se distribuye incluido en la distribución de Imager, donde las versiones anteriores a la 1.032 están afectadas y la corrección se incluye en la 1.032.","source":"nvd"}],"published":"2026-07-06T12:04:10.659Z","modified":"2026-10-25T20:10:00.147Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"1.003","status":"affected"}],"vendor":"TONYC","product":"Imager::File::JPEG","package":"Imager-File-JPEG","repo":"https://github.com/tonycoz/imager","source":"cvelist"}],"references":[{"url":"https://github.com/tonycoz/imager/commit/9f1c485ca3ee15dc261549e11afb356866552c3a.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TONYC/Imager-File-JPEG-1.003/source/Changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/07/06/4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-06T18:53:48.057Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-13708","url":"https://www.cve.org/CVERecord?id=CVE-2026-13708","licence":"CVE Terms of Use","modified":"2026-07-06T18:53:51.698Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-13708","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-13708","licence":"Public domain","modified":"2026-10-25T20:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:27.226Z","epss":{"score":0.00609,"percentile":0.4339,"date":"2026-11-30T12:00:22.000Z"}}