# 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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 43% of CVEs (2026-11-30)
- Published: 2026-07-06T12:04:10.659Z
- Modified: 2026-10-25T20:10:00.147Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

Imager::File::JPEG versions before 1.003 for Perl leak heap memory when reading a JPEG with repeated APP13 markers in i_readjpeg_wiol.

i_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.

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.

(As written by CVE List.)

## Affected

- Imager-File-JPEG: before 1.003

## References

- <https://github.com/tonycoz/imager/commit/9f1c485ca3ee15dc261549e11afb356866552c3a.patch> (patch)
- <https://metacpan.org/release/TONYC/Imager-File-JPEG-1.003/source/Changes> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/07/06/4>

## Sources

- CVE List: [CVE-2026-13708](https://www.cve.org/CVERecord?id=CVE-2026-13708), CVE Terms of Use, modified 2026-07-06
- NVD: [CVE-2026-13708](https://nvd.nist.gov/vuln/detail/CVE-2026-13708), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-13708 · Whole record: https://cve.day/CVE-2026-13708.json · Rebuilt by cve.day 2026-11-25T22:59:27.226Z
