Vulnerability · Published Oct 20, 2026 · Assigned by CPANSec
CVE-2026-112202Imager::File::GIF versions before 1.006 for Perl allow out-of-bounds reads when consolidating GIF images
Medium 6.5
In plain English
A medium-severity out-of-bounds read in Imager. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libimager-perl | no fix listed | DEBIAN-CVE-2026-112202 |
| Debian:13 | libimager-perl | no fix listed | DEBIAN-CVE-2026-112202 |
| Debian:14 | libimager-perl | 1.040+dfsg-1 | DEBIAN-CVE-2026-112202 |
| Ubuntu:22.04:LTS | libimager-perl | no fix listed | UBUNTU-CVE-2026-112202 |
| Ubuntu:24.04:LTS | libimager-perl | no fix listed | UBUNTU-CVE-2026-112202 |
| Ubuntu:26.04:LTS | libimager-perl | no fix listed | UBUNTU-CVE-2026-112202 |
| Ubuntu:26.10 | libimager-perl | no fix listed | UBUNTU-CVE-2026-112202 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Imager-File-GIF | 0 – before 1.006 | |
| Imager | 0 – before 1.040 |
Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
References
- https://github.com/tonycoz/imager/commit/dec96f12b3d8a7fd94e86264953a5e4919dd6036.patch patch
- https://metacpan.org/release/TONYC/Imager-File-GIF-1.006/changes release-notes
- https://metacpan.org/release/TONYC/Imager-1.040/changes release-notes
- https://github.com/tonycoz/imager/security/advisories/GHSA-v4hp-5h6w-9897 vendor-advisory
- http://www.openwall.com/lists/oss-security/2026/10/21/1