{"id":"CVE-2026-13708","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","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.\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.","publishedAt":"2026-07-06T12:04:10.659Z","updatedAt":"2026-07-06T18:53:51.698Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["TONYC Imager::File::JPEG"],"affected":[{"vendor":"TONYC","product":"Imager::File::JPEG","packageName":"Imager-File-JPEG","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.003","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["imjpeg.c"],"programRoutines":[{"name":"i_readjpeg_wiol"}],"repo":"https://github.com/tonycoz/imager"}],"references":["https://github.com/tonycoz/imager/commit/9f1c485ca3ee15dc261549e11afb356866552c3a.patch","https://metacpan.org/release/TONYC/Imager-File-JPEG-1.003/source/Changes","http://www.openwall.com/lists/oss-security/2026/07/06/4"],"weaknesses":["CWE-401"],"ingestedAt":"2026-10-29T20:11:00.674Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/13xxx/CVE-2026-13708.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-13708","state":"PUBLISHED","datePublished":"2026-07-06T12:04:10.659Z","dateUpdated":"2026-07-06T18:53:51.698Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-06-29T13:22:53.937Z"},"containers":{"cna":{"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","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"TONYC","product":"Imager::File::JPEG","packageName":"Imager-File-JPEG","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.003","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["imjpeg.c"],"programRoutines":[{"name":"i_readjpeg_wiol"}],"repo":"https://github.com/tonycoz/imager"}],"references":[{"url":"https://github.com/tonycoz/imager/commit/9f1c485ca3ee15dc261549e11afb356866552c3a.patch","tags":["patch"]},{"url":"https://metacpan.org/release/TONYC/Imager-File-JPEG-1.003/source/Changes","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-401","description":"CWE-401 Missing Release of Memory after Effective Lifetime","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-07-06T12:04:10.659Z"},"solutions":[{"lang":"en","value":"Upgrade to Imager::File::JPEG 1.003 or later, or to Imager 1.032 or later if the bundled copy is in use."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2026-07-01T00:00:00.000Z","value":"Version 1.003 released with fix."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/07/06/4"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-07-06T18:38:13.622Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-07-06T18:53:48.057324Z","id":"CVE-2026-13708","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-06T18:53:51.698Z"}}]}}}