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

Published Jul 6, 2026
·
Updated

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

1 affected component
CPAN Imager<1.003, <1.032

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Imager::File::JPEG to a version that resolves this vulnerability.

    Fixed in 1.003
  2. Upgrade

    Upgrade Imager to a version that resolves this vulnerability.

    Fixed in 1.032

Event History

Jul 6, 2026
CVE Published
via MITRE·12:04 PM
Data Sourced
via MITRE·12:04 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·01:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-13708?

CVE-2026-13708 has a high severity rating of 7.5 on the CVSS scale.

2

How do I fix CVE-2026-13708?

To fix CVE-2026-13708, update to Imager::File::JPEG version 1.003 or later.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203