CVE-2026-112202
Imager::File::GIF versions before 1.006 for Perl allow out-of-bounds reads when consolidating GIF images
- State
- Published
- Severity
- 6.5 Medium
- Published
- Oct 20, 2026
- Updated
- Oct 30, 2026
- Reserved
- Oct 19, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 6.5 Medium | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L | CISA-ADP |
Weaknesses
- CWE-125 Out-of-bounds Read
Affected Products
| Product | Versions |
|---|---|
Imager-File-GIF |
|
Imager |
|
References
- https://github.com/tonycoz/imager/commit/dec96f12b3d8a7fd94e86264953a5e4919dd6036.patchpatch
- https://metacpan.org/release/TONYC/Imager-File-GIF-1.006/changesrelease-notes
- https://metacpan.org/release/TONYC/Imager-1.040/changesrelease-notes
- https://github.com/tonycoz/imager/security/advisories/GHSA-v4hp-5h6w-9897vendor-advisory
- http://www.openwall.com/lists/oss-security/2026/10/21/1
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.