{"id":"CVE-2026-13708","published":"2026-07-06T12:04:10Z","modified":"2026-07-06T18:53:51Z","title":"Imager::File::JPEG versions before 1.003 for Perl leak heap memory when reading a JPEG with repeated APP13 markers in…","vendor":"TONYC","product":"Imager::File::JPEG","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00609,"percentile":0.50111,"provenance":"source"},"cwes":[{"id":"CWE-401","name":"Missing Release of Memory after Effective Lifetime"}],"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"]},{"url":"http://www.openwall.com/lists/oss-security/2026/07/06/4","tags":[]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":10.02},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"tonyc","affectedVersions":[{"vendor":"TONYC","product":"Imager::File::JPEG","versions":["< 1.003"]}],"solutions":{"items":["Upgrade to Imager::File::JPEG 1.003 or later, or to Imager 1.032 or later if the bundled copy is in use."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-06T18:53:48.057324Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-41873","exploited":false,"provenance":"source"}}