Skip to content
OpenAdvisories
Medium · 6.2 CVE-2026-73638 EUVD-2026-82491

Imager versions from 0.45_02 before 1.035 for Perl read outside the EXIF block via unchecked start offsets in tiff_load_ifd

Published Sep 17, 2026 · Updated Sep 22, 2026 · Assigned by CPANSec

Description

Imager versions from 0.45_02 before 1.035 for Perl read outside the EXIF block via unchecked start offsets in tiff_load_ifd.

tiff_load_ifd() validates an IFD entry's data by checking that `entry->offset + entry->size` stays within the EXIF block, and never checks the start offset itself. Where that sum is not the real end of the data, the check passes with the entry starting outside the block.

Through 1.032 `entry->offset` is a plain int, so on the usual two's-complement implementations an offset with the high bit set converts to negative and the sum can land back inside the block. From 1.033 the field is a size_t and the addition wraps only where size_t is 32 bits. The IFD's own start offset is checked the same way and wraps where unsigned long is 32 bits, which includes 64-bit Windows.

Any caller of Imager->read() on an attacker-supplied image may receive EXIF tags holding bytes from outside the block, or crash the process.

Affected products

VendorProductAffectedFixed
— Imager 0.45_02 – < 1.035 1.035

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libimager-perl 1.035+dfsg-1 —
Debian 13 libimager-perl No fix yet —
Debian 12 libimager-perl No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libimager-perl No fix yet —
Ubuntu 26.04 LTS libimager-perl No fix yet —
Ubuntu 24.04 LTS libimager-perl No fix yet —
Ubuntu 22.04 LTS libimager-perl No fix yet —
Ubuntu 20.04 LTS libimager-perl No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS libimager-perl No fix yet —
Ubuntu 16.04 LTS libimager-perl No fix yet —

References