CVE-2026-13708: Imager::File::JPEG versions before 1.003 for Perl leak heap memory when reading a JPEG with repeated APP13 markers in i_readjpeg_wiol
Imager::File::JPEG versions before 1.003 for Perl leak heap memory when reading a JPEG with repeated APP13 markers in ireadjpegwiol.
ireadjpegwiol walks the marker list libjpeg returns and, for each APP13 marker, allocates a new buffer with iptcitext = 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.
In a long-lived process, such as an upload or thumbnailing service, repeated reads accumulate these leaks and exhaust available memory, a denial of service.
The same handler ships bundled in the Imager distribution, where versions before 1.032 are affected and the fix ships in 1.032.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Imager::File::JPEGto a version that resolves this vulnerability.Fixed in 1.003 - Upgrade
Upgrade
Imagerto a version that resolves this vulnerability.Fixed in 1.032
Event History
Frequently Asked Questions
What is the severity of CVE-2026-13708?
CVE-2026-13708 has a high severity rating of 7.5 on the CVSS scale.
How do I fix CVE-2026-13708?
To fix CVE-2026-13708, update to Imager::File::JPEG version 1.003 or later.
What vulnerability does CVE-2026-13708 exploit?
CVE-2026-13708 exploits a memory leak in Imager::File::JPEG when reading JPEGs with repeated APP13 markers.
What type of application is affected by CVE-2026-13708?
CVE-2026-13708 affects the CPAN Imager application when using the Imager::File::JPEG module.
What impact does CVE-2026-13708 have on system performance?
CVE-2026-13708 can lead to increased memory usage over time due to heap memory leaks.