CVE-2026-19082: CWE-125 Out-of-bounds Read in TONYC Imager
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.
AI Analysis
Technical Summary
The vulnerability arises in the copy_string_tags() function of TONYC Imager versions from 0.45_02 before 1.034 for Perl. When an ASCII EXIF tag has a zero count, entry->size is zero, leading to a computed length of -1. This length is passed to i_tags_add(), which calls strlen() on the tag, causing an over-read beyond the intended buffer boundary. This results in adjacent heap bytes being copied into the exif_* tag. The issue affects JPEG and WEBP image processing paths via im_decode_exif() and Imager::File::WEBP. The vulnerability allows an attacker supplying a crafted image to cause exposure of adjacent heap memory through the EXIF tags returned by Imager->read().
Potential Impact
An attacker can supply a malicious image with a crafted zero-count ASCII EXIF entry that triggers an out-of-bounds read, causing adjacent heap memory to be exposed in the returned EXIF tags. This can lead to information disclosure of potentially sensitive memory contents. There is no indication of code execution or denial of service. The CVSS score is 7.5 (high), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality impact.
Mitigation Recommendations
No official patch or remediation level is currently confirmed. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should upgrade to Imager version 1.034 or later when available, as the issue is fixed by upgrading. Until then, avoid processing untrusted images with vulnerable versions of Imager.
CVE-2026-19082: CWE-125 Out-of-bounds Read in TONYC Imager
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.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises in the copy_string_tags() function of TONYC Imager versions from 0.45_02 before 1.034 for Perl. When an ASCII EXIF tag has a zero count, entry->size is zero, leading to a computed length of -1. This length is passed to i_tags_add(), which calls strlen() on the tag, causing an over-read beyond the intended buffer boundary. This results in adjacent heap bytes being copied into the exif_* tag. The issue affects JPEG and WEBP image processing paths via im_decode_exif() and Imager::File::WEBP. The vulnerability allows an attacker supplying a crafted image to cause exposure of adjacent heap memory through the EXIF tags returned by Imager->read().
Potential Impact
An attacker can supply a malicious image with a crafted zero-count ASCII EXIF entry that triggers an out-of-bounds read, causing adjacent heap memory to be exposed in the returned EXIF tags. This can lead to information disclosure of potentially sensitive memory contents. There is no indication of code execution or denial of service. The CVSS score is 7.5 (high), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality impact.
Mitigation Recommendations
No official patch or remediation level is currently confirmed. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should upgrade to Imager version 1.034 or later when available, as the issue is fixed by upgrading. Until then, avoid processing untrusted images with vulnerable versions of Imager.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-08-06T11:48:54.170Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a762368bf8831d539ed4408
Added to database: 08/07/2026, 18:26:48 UTC
Last enriched: 08/07/2026, 18:46:58 UTC
Last updated: 08/08/2026, 01:06:10 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.