CPANSA-Imager-2026-73638: Imager vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-09-17T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-09-17T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 6.2 | Severity | |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability 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.
Vulnerabilities
CVE-2026-73638
Vulnerability DescriptionImager 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.
| Weakness | CWE-125 : Out-of-bounds Read |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Imager greater than or equal 0.45_02 and less than 1.035 |
|
Fixed
- Imager greater than or equal 1.035
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-Imager-2026-73638 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-imager-2026-73638.json - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1144226 external
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1144226 - https://github.com/tonycoz/imager/commit/48ba8ac0749f89466b6e6681fb88cbdb51086ebd.patch external
https://github.com/tonycoz/imager/commit/48ba8ac0749f89466b6e6681fb88cbdb51086ebd.patch - https://github.com/tonycoz/imager/commit/6f1fd003a8e48c7e6e58b7019a04cc71bbfec2c3.patch external
https://github.com/tonycoz/imager/commit/6f1fd003a8e48c7e6e58b7019a04cc71bbfec2c3.patch - https://github.com/tonycoz/imager/issues/568 external
https://github.com/tonycoz/imager/issues/568 - https://github.com/tonycoz/imager/security/advisories/GHSA-j47j-8w8p-3mmc external
https://github.com/tonycoz/imager/security/advisories/GHSA-j47j-8w8p-3mmc - https://metacpan.org/release/TONYC/Imager-1.035/changes external
https://metacpan.org/release/TONYC/Imager-1.035/changes - http://www.openwall.com/lists/oss-security/2026/09/17/5 external
http://www.openwall.com/lists/oss-security/2026/09/17/5 - CVE-2026-73638 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-73638
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Thu Sep 17 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/