Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-19082: CWE-125 Out-of-bounds Read in TONYC Imager

0
High
VulnerabilityCVE-2026-19082cvecve-2026-19082cwe-125
Published: 08/07/2026 (08/07/2026, 17:56:49 UTC)
Source: CVE Database V5
Vendor/Project: TONYC
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected software

GitHub Actionsmore threats →cve
Imager
pkg:github/Imager

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/07/2026, 18:46:58 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses