{"id":"CVE-2026-19082","state":"PUBLISHED","title":"Imager versions from 0.45_02 before 1.034 for Perl may expose adjacent heap bytes via strlen() over-read from zero-count ASCII EXIF entries in copy_string_tags","description":"Imager versions from 0.45_02 before 1.034 for Perl may expose adjacent heap bytes via strlen() over-read from zero-count ASCII EXIF entries in copy_string_tags.\n\ncopy_string_tags() computes an ASCII EXIF tag's length as `entry->size - 1` to strip the trailing NUL. A zero-count ASCII entry sets `entry->size` to 0, and the derived length reaches i_tags_add() as -1, which is interpreted as a request to call strlen(), scanning past the entry to the next NUL and copying those bytes into the tag. JPEG reaches this path via im_decode_exif(), as does the separate Imager::File::WEBP distribution, which is fixed by upgrading Imager.\n\nAny caller of Imager->read() on an attacker-supplied image with such an entry may receive an exif_* tag holding adjacent heap bytes instead of an empty string.","publishedAt":"2026-08-07T17:56:49.592Z","updatedAt":"2026-08-07T20:13:18.224Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CISA-ADP"},"assigner":"CPANSec","products":["TONYC Imager"],"affected":[{"vendor":"TONYC","product":"Imager","packageName":"Imager","defaultStatus":"unaffected","versions":[{"version":"0.45_02","status":"affected","lessThan":"1.034","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["imexif.c","tags.c"],"programRoutines":[{"name":"copy_string_tags"},{"name":"i_tags_add"}],"repo":"https://github.com/tonycoz/imager"}],"references":["https://github.com/tonycoz/imager/security/advisories/GHSA-hx46-55wp-hv6m","https://github.com/tonycoz/imager/commit/24bde0427a113264d53f45a9c29ae756d84c82fe.patch","https://metacpan.org/release/TONYC/Imager-1.034/changes","http://www.openwall.com/lists/oss-security/2026/08/07/6"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:11:10.572Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/19xxx/CVE-2026-19082.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-19082","state":"PUBLISHED","datePublished":"2026-08-07T17:56:49.592Z","dateUpdated":"2026-08-07T20:13:18.224Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-08-06T11:48:54.170Z"},"containers":{"cna":{"title":"Imager versions from 0.45_02 before 1.034 for Perl may expose adjacent heap bytes via strlen() over-read from zero-count ASCII EXIF entries in copy_string_tags","descriptions":[{"lang":"en","value":"Imager versions from 0.45_02 before 1.034 for Perl may expose adjacent heap bytes via strlen() over-read from zero-count ASCII EXIF entries in copy_string_tags.\n\ncopy_string_tags() computes an ASCII EXIF tag's length as `entry->size - 1` to strip the trailing NUL. A zero-count ASCII entry sets `entry->size` to 0, and the derived length reaches i_tags_add() as -1, which is interpreted as a request to call strlen(), scanning past the entry to the next NUL and copying those bytes into the tag. JPEG reaches this path via im_decode_exif(), as does the separate Imager::File::WEBP distribution, which is fixed by upgrading Imager.\n\nAny caller of Imager->read() on an attacker-supplied image with such an entry may receive an exif_* tag holding adjacent heap bytes instead of an empty string."}],"affected":[{"vendor":"TONYC","product":"Imager","packageName":"Imager","defaultStatus":"unaffected","versions":[{"version":"0.45_02","status":"affected","lessThan":"1.034","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["imexif.c","tags.c"],"programRoutines":[{"name":"copy_string_tags"},{"name":"i_tags_add"}],"repo":"https://github.com/tonycoz/imager"}],"references":[{"url":"https://github.com/tonycoz/imager/security/advisories/GHSA-hx46-55wp-hv6m","tags":["vendor-advisory"]},{"url":"https://github.com/tonycoz/imager/commit/24bde0427a113264d53f45a9c29ae756d84c82fe.patch","tags":["patch"]},{"url":"https://metacpan.org/release/TONYC/Imager-1.034/changes","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","description":"CWE-125 Out-of-bounds Read","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-08-07T17:56:49.592Z"},"credits":[{"lang":"en","type":"finder","value":"Arpit Jain (arpitjain099)"}],"solutions":[{"lang":"en","value":"Upgrade to Imager 1.034 or later."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2026-08-07T00:00:00.000Z","value":"Version 1.034 released with fix."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/tonycoz/imager/security/advisories/GHSA-hx46-55wp-hv6m","tags":["exploit"]}],"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:H/I:N/A:N","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-08-07T18:21:43.252440Z","id":"CVE-2026-19082","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-07T18:23:05.483Z"}},{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/08/07/6"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-08-07T20:13:18.224Z"}}]}}}