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

[CVE catalog]

Severity
High · CVSS 7.1CVSS: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.

DistributionPackageReleaseVersionStatus
Debianlibimager-perlsid1.040+dfsg-1fixed
Debianlibimager-perlforky1.037+dfsg-2fixed
Debianlibimager-perltrixie1.027+dfsg-1vulnerable
Debianlibimager-perlbookworm1.019+dfsg-1vulnerable
Cpelibimager-perlNot reportedNot reportedvulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibimager-perlsourcesid1.032+dfsg-1not yet assignedNot reported[1141587]
Debianlibimager-perlsourceforky1.032+dfsg-1not yet assignedNot reported[1141587]
Debianlibimager-perlsourcetrixie(unfixed)not yet assignedNot reported[1141587]
Debianlibimager-perlsourcebookworm(unfixed)not yet assignedNot reported[1141587]

[Debian bug #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 · bookworm

      Affected

      nvd · libimager-perl · debian · bookworm; nvd · libimager-perl · debian · 12

    • 1.019+dfsg-1+b2 · arm64 · bookworm

      Affected

      nvd · libimager-perl · debian · bookworm; nvd · libimager-perl · debian · 12

[Debian 13 (Trixie)]

  • [libimager-perl]Affected
    Details (2)
    • 1.027+dfsg-1 · amd64 · trixie

      Affected

      nvd · libimager-perl · debian · 13

    • 1.027+dfsg-1 · arm64 · trixie

      Affected

      nvd · libimager-perl · debian · 13

Observed:

References