Imager::File::GIF versions before 1.006 for Perl allow out-of-bounds reads when consolidating GIF images
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.
CVE-2026-112202
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-112202
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://github.com/tonycoz/imager",
"modules": [
"Imager::File::GIF"
],
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "1.006",
"versionType": "custom"
}
],
"packageURL": "pkg:cpan/Imager-File-GIF",
"packageName": "Imager-File-GIF",
"programFiles": [
"imgif.c"
],
"collectionURL": "https://cpan.org/modules",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "i_readgif_low"
}
]
},
{
"repo": "https://github.com/tonycoz/imager",
"modules": [
"Imager::File::GIF"
],
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "1.040",
"versionType": "custom"
}
],
"packageURL": "pkg:cpan/Imager",
"packageName": "Imager",
"programFiles": [
"GIF/imgif.c"
],
"collectionURL": "https://cpan.org/modules",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "i_readgif_low"
}
]
}
]- Related CVEs
- CVE-2026-112202
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #45037 · Revision 1
- Added to Heist Feed
- Publisher date