With `gif_consolidate => 1`, palette indices from the image are used without checking the colour table's bounds. The i_readgif_low routine reads beyond the heap allocation and copies the bytes into output pixels. The default GIF reader is not affected.
The same code ships bundled in the Imager distribution.
An attacker supplying a crafted GIF can disclose adjacent heap memory through the decoded output and may crash the process.
Analysis and contextual insights are available on OpenCVE Cloud.
Vendor Solution
Upgrade to Imager-File-GIF 1.006 or later, or to Imager 1.040 or later if the bundled copy is in use.
Vendor Workaround
Disable the gif_consolidate read option when processing untrusted GIF images.
Tracking
Sign in to view the affected projects.
No advisories yet.
Wed, 21 Oct 2026 03:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
Tue, 20 Oct 2026 22:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Imager::File::GIF versions before 1.006 for Perl allow out-of-bounds reads when consolidating GIF images. With `gif_consolidate => 1`, palette indices from the image are used without checking the colour table's bounds. The i_readgif_low routine reads beyond the heap allocation and copies the bytes into output pixels. The default GIF reader is not affected. The same code ships bundled in the Imager distribution. An attacker supplying a crafted GIF can disclose adjacent heap memory through the decoded output and may crash the process. | |
| Title | Imager::File::GIF versions before 1.006 for Perl allow out-of-bounds reads when consolidating GIF images | |
| Weaknesses | CWE-125 | |
| References |
|
Subscriptions
No data.
Status: PUBLISHED
Assigner: CPANSec
Published:
Updated: 2026-10-21T02:11:40.235Z
Reserved: 2026-10-19T10:02:31.268Z
Link: CVE-2026-112202
No data.
Status : Received
Published: 2026-10-20T23:17:01.690
Modified: 2026-10-21T03:17:19.217
Link: CVE-2026-112202
No data.
OpenCVE Enrichment
Updated: 2026-10-21T12:15:18Z
-
CWE-125
Out-of-bounds Read