
CVE catalog
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. i_readjpeg_wiol walks the marker list libjpeg returns and, for e
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.61% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libimager-perl | sid | 1.040+dfsg-1 | fixed |
| Debian | libimager-perl | forky | 1.037+dfsg-2 | fixed |
| Debian | libimager-perl | trixie | 1.027+dfsg-1 | vulnerable |
| Debian | libimager-perl | bookworm | 1.019+dfsg-1 | vulnerable |
| Cpe | libimager-perl | Not reported | Not reported | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libimager-perl | source | sid | 1.032+dfsg-1 | not yet assigned | Not reported | [1141587] |
| Debian | libimager-perl | source | forky | 1.032+dfsg-1 | not yet assigned | Not reported | [1141587] |
| Debian | libimager-perl | source | trixie | (unfixed) | not yet assigned | Not reported | [1141587] |
| Debian | libimager-perl | source | bookworm | (unfixed) | not yet assigned | Not reported | [1141587] |
Notes
[trixie] libimager-perl: Minor issue [bookworm] libimager-perl: Minor issue; memory leak reading JPEGs with repeated APP13 markers, DoS only in long-lived readers
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libimager-perl]Affected
Source package: [libimager-perl]
Details (2)
1.019+dfsg-1+b2· amd64 · bookwormAffected
nvd · libimager-perl · debian · bookworm; nvd · libimager-perl · debian · 12
1.019+dfsg-1+b2· arm64 · bookwormAffected
nvd · libimager-perl · debian · bookworm; nvd · libimager-perl · debian · 12
[Debian 13 (Trixie)]
- [libimager-perl]Affected
Details (2)
1.027+dfsg-1· amd64 · trixieAffected
nvd · libimager-perl · debian · 13
1.027+dfsg-1· arm64 · trixieAffected
nvd · libimager-perl · debian · 13
Observed:
References
- [http://www.openwall.com/lists/oss-security/2026/07/06/4]
- [https://github.com/tonycoz/imager/commit/9f1c485ca3ee15dc261549e11afb356866552c3a.patch]
- [https://metacpan.org/release/TONYC/Imager-File-JPEG-1.003/source/Changes]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-13708]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-13708]
- [https://security-tracker.debian.org/tracker/CVE-2026-13708]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database]