
CVE catalog
CVE-2026-13705
Imager versions before 1.032 for Perl have a heap out-of-bounds read in the bundled Imager::File::SGI reader via a 16-bit RLE literal run in read_rgb_16_rle. read_rgb_16_rle guards each literal run w
- Severity
- High · CVSS 7.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.18% · Oct 25, 2026
Imager versions before 1.032 for Perl have a heap out-of-bounds read in the bundled Imager::File::SGI reader via a 16-bit RLE literal run in read_rgb_16_rle. read_rgb_16_rle guards each literal run with if (count > data_left), but count is a pixel count while every 16-bit sample consumes two bytes. The copy loop reads inp[0] * 256 + inp[1] and advances two bytes per pixel, so a run with data_left / 2 < count <= data_left passes the guard yet consumes 2 * count bytes and reads past the end of the buffer. The 8-bit path is unaffected because there one pixel is one byte. Reading a crafted SGI image through Imager->read triggers the over-read before the parser rejects the malformed image, which can crash the process.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libimager-perl | sid | 1.040+dfsg-1 | fixed |
| Debian | libimager-perl | forky | 1.037+dfsg-2 | fixed |
| Debian | libimager-perl | trixie | 1.027+dfsg-1 | vulnerable |
| Debian | libimager-perl | bookworm | 1.019+dfsg-1 | vulnerable |
| Cpe | libimager-perl | Not reported | Not reported | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libimager-perl | source | sid | 1.032+dfsg-1 | not yet assigned | Not reported | [1141587] |
| Debian | libimager-perl | source | forky | 1.032+dfsg-1 | not yet assigned | Not reported | [1141587] |
| Debian | libimager-perl | source | trixie | (unfixed) | not yet assigned | Not reported | [1141587] |
| Debian | libimager-perl | source | bookworm | (unfixed) | not yet assigned | Not reported | [1141587] |
Notes
[trixie] libimager-perl: Minor issue [bookworm] libimager-perl: Minor issue; heap over-read crash on a crafted SGI image
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libimager-perl]Affected
Source package: [libimager-perl]
Details (2)
1.019+dfsg-1+b2· amd64 · bookwormAffected
nvd · libimager-perl · debian · bookworm; nvd · libimager-perl · debian · 12
1.019+dfsg-1+b2· arm64 · bookwormAffected
nvd · libimager-perl · debian · bookworm; nvd · libimager-perl · debian · 12
[Debian 13 (Trixie)]
- [libimager-perl]Affected
Details (2)
1.027+dfsg-1· amd64 · trixieAffected
nvd · libimager-perl · debian · 13
1.027+dfsg-1· arm64 · trixieAffected
nvd · libimager-perl · debian · 13
Observed:
References
- [http://www.openwall.com/lists/oss-security/2026/07/06/3]
- [https://github.com/tonycoz/imager/commit/f28de02770dfc26ffbdc32048970ed84babbf730.patch]
- [https://metacpan.org/release/TONYC/Imager-1.032/source/Changes]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-13705]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-13705]
- [https://security-tracker.debian.org/tracker/CVE-2026-13705]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database]