CVE-2026-19082 Details
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. copy_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. Any 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.
A vulnerability in the Imager Perl library, specifically in versions 0.45_02 prior to 1.034, allows for an adjacent heap memory over-read. This issue arises from the improper handling of zero-length ASCII EXIF entries, which are processed by the function 'copy_string_tags()'. The vulnerability can be exploited by any user who can upload a JPEG image containing a crafted EXIF tag with a component count of zero. When the image is processed with 'Imager->read()', the EXIF tag will incorrectly include adjacent heap bytes instead of an empty string.
Users can upgrade to Imager version 1.034, which addresses the vulnerability by correctly handling ASCII EXIF fields with a zero length.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 7, 2026CISA-ADP
Assessed Aug 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/tonycoz/imager/security/advisories/GHSA-hx46-55wp-hv6m | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/tonycoz/imager/commit/24bde0427a113264d53f45a9c29ae756d84c82fe.patch | CPANSec | Source CodeVendor |
| https://github.com/tonycoz/imager/security/advisories/GHSA-hx46-55wp-hv6m | CPANSec | AdvisoryExploitRemedyVendor |
| https://metacpan.org/release/TONYC/Imager-1.034/changes | CPANSec | Release NotesVendor |
| http://www.openwall.com/lists/oss-security/2026/08/07/6 | CVE |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| Imager | <= 1.033 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 7, 2026 | CVE Modified | CVE |
| Aug 7, 2026 | CVE Modified | CISA-ADP |
| Aug 7, 2026 | New CVE Received | CPANSec |
Volerion